So many people are confused about the meaning of this term lately, to the point where I think we might need to scrap it and come up with a new one. In traditional economics, rent-seeking is a bad thing, because it involves lobbying the government to increase one's revenues without performing any economically beneficial function. This is why the term has a negative connotation. Almost all economists think this type of behavior causes inefficiency.
Buying a house and renting it out does not fall under this category. In this case, you are performing a beneficial economic function (i.e. you are providing someone a dwelling, in exchange for money). There are related rent-seeking behaviors, such as lobbying the government to prevent building new housing stock for the purpose of increasing the value of your dwelling and the amount of your rents. But the act of investing itself? Not rent-seeking. Not considered bad by most economists.