You're paying all the transaction costs and maintainance costs and tax and insurance costs when you rent too. The landlord passes them on to you in your rent.
One thing that can make it better to own (in the US) is that mortgage interest is tax deductible (at the federal level). Rent typically is not (although some states make rent tax deductible because voters naively believe this is a subsidy to renters and not to landlords).