I used to live in an apartment then decided to buy a house for reasons such as wanting to have a yard / outdoor space (wanted to buy a big dog among others), leave city life for suburban life for peace & quiet, family-proof (place where I’d want hypothetical kids to grow up in), etc. After experiencing both I prefer house over apartment.
When I was alone: apartment. More economical. Did not want to pay for a lot of space I did not use.
Girlfriend and two dogs later: looking for a house.