Inflation is absolutely tied to supply and demand. When more dollars chase the same amount of assets, prices rise. Same thing happens with any other asset. Just depends on how many dollars are chasing which assets.
It’s not rocket science. It’s Econ 101