The supply of housing for purchase directly competes with the supply of housing for rent. If you can get a 2 bed home for $1800/month as a renter or $1700/month to own, most people will choose to purchase, forcing landlords to lower prices. Similarly, if you can get $2500/month in rent for a property that costs $2100 a month to own and operate as an investment people and institutions will purchase or convert units to rental properties.
Yes, they aren't 100% interchangeable (down payment requirements and transaction costs can change the equation renting all things being equal ) and some markets (the bay area in particular) seem to have a bizarre separation in the cost of renting versus buying, but in general this holds true.