Read the numbers on this page knowing which agents they describe.
BLS wage figures come from data employers report about their workers. It does not cover the self-employed or owners and partners of unincorporated firms, and the BLS Occupational Outlook Handbook says about 54% of real estate sales agents are self-employed. Many agents work as independent contractors affiliated with a brokerage, and they are not in the percentiles above.
What remains are agents who are employees, paid through an employer's payroll. BLS counts commissions as wages, so their commission income is included. The median is a reasonable guide for salaried or employee-agent roles and only a rough guide for independent agents, whose income can be well above or below it.