After those 30 years it's entirely possible that as a renter I have:
- been able to take advantage of moving freely for personal or economic reasons
- been able to move to a newer completely renovated apartment number of time for no costs other than moving my stuff instead of either paying for it or living in a house with a 20 years old kitchen
- been able to live without stress about all the responsibilities that come with owning a house, being in debt and tied down
- come out with enough money from my S&P500 that I started 30 years ago to decide to settle down somewhere and buy the house or continue as is with bunch of money saved up
I am not saying that this is what will always happen or that owning a house is strictly worse but the "rent is money down the drain, mortgage payments is money you keep in the end" angle is way too naive.