State, provincial, and national bodies that license agents, brokers, and in some countries developers, set education and conduct rules, hold client-money rules, and discipline or strike off those who break them.
Real estate commissions are one player in the residential real estate industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how real estate commissions fit into residential real estate