Living with a stranger is definitely a risk. They could end up becoming one of your best friends, or they could decide that they want to be the bane of your life until the day that they move out. One thing's for sure: having roommates will teach you a lot about how to exist with people, as well as how not to. It is a phase of life that most of us like to leave behind at a certain point if we can.
As a result, it often takes a special kind of individual to want to share a home that they own with a random person for a profit. Admittedly, it is one of the most obvious ways to make passive income if it is a resource available to you, but it also requires the sacrifice of some personal space, as well as a willingness to be occasionally inconvenienced. If you cannot cope with that, you probably have no business in renting a room. Anybody paying for their accommodation has a right to enjoy it to its full extent in a respectful way.