I've purchased many homes and they're not great either but they're not as bad. First, I'm not required to go through a real estate agent by law. Real estate agents do a lot of work I'd rather not do in setting up the transaction. When it comes to purchasing a car the dealer doesn't do anything I couldn't trivially do myself.
Dealers are government corruption plain and simple. They offer next to nothing, sometimes scam us outright, but we are required to patronize them if we want a new vehicle.
Real estate agents on the other hand mostly just charge too much.