The SMD resistors and capacitors I understand, those are common parts and the problems lie with raw material production and not just the factories making the parts.
Also a bit of greed at work, parts for automotive and cell phone usage have greater profits, but the same source materials/processes.
The IC shortages have me stumped though, almost got nailed by that myself. Micro is out of stock at the moment, however I found the stash of missing parts.
Problem is I have 1 microprocessor, stuff up soldering it and it's 2 weeks min to get another.