Obviously nobody says it should but some people want to participate in win-win scenarios that benefit them and others. If you own a business, you want to make more money as you provide more VALUE to OTHERS. Not because you got lucky, or deceived them.
Being a landlord isn’t win-win. It’s negative value by reducing supply and raising values. Don’t deluded yourself. Those other investment things you mentioned are more valuable to society than taking away housing affordability.