My home state (Washington) is the 4th-most expensive state in the country. In the Seattle area, a senior software engineer makes about $275k on average. Meanwhile, the average house price in 2022 was $650k. Easy math here - an experienced agent will make $6.5k on a sale in WA. (Yes, it would be higher in Seattle - but real estate doesn't necessarily concentrate in the same way as engineering talent, so I don't think that's a fair comparison.) Thus, an agent would need to be the buying or selling agent in 42 sales per year to make as much as a senior engineer.
Selling agents probably sell ~30 houses a year in a really strong market, so even in peak COVID relocation times, less than a senior software engineer in a similar location.
On the other side of things, when my wife and I bought in the competitive market of 2021, we probably toured about 30 houses. We put offers in on eight of them. Our agent coordinated inspections and was present for all of them. I'd guess they put in, conservatively, 60 hours of work for our house. We paid $670k, so our agent got around $6.7k for those 60 hours of work - around $110/hr, or a lot less than I was making as a senior engineer at Dropbox at the same time (almost twice that).
tl;dr, no, they probably don't earn more per hour than a senior software engineer at a high-paying company, unless the real estate agent also happens to live in San Francisco.