The ME countries you are talking about are UAE, Qatar etc. where a lot of labourers are brought in from South Asian countries for construction etc. That's why you see so many 20-40 males.
Interestingly enough if you change the filter to "US" and rewind the data to 1950 (it looks like that's how far this graph goes), if you advance up by 5 years you can see the "bulge" of baby boomers age up into retirement where they are right now.
https://www.populationpyramid.net/world/2024/
I noticed some middle eastern countries have a very skewed male female ratio among people born roughly 30 years ago.