Earlier quoted context omitted.
You're right it was my first house. I do believe it is sometimes more complicated. But is the value of a realtor's time to me, as a buyer or seller, really several hundred dollars per hour? Is buying a 600k house really twice as difficult a transaction than a 300k house? Why are they not paid a flat fee?
Seller's agents aren't paid a flat fee to align their interest with that of the seller; they want the deal to close at the highest price possible. Why buyer's agents are paid on sale-price-commission is, OTOH, a real question.
Once again buyer's agents are a large part of the equation. They have to drive around the actual buyers and waste time showing properties with nothing to show for it often.
So the way it works is the people who actually buy (or sell) make more money to compensate for people that do not buy.