There's an article about the US Air Force and the "average pilot" https://www.thestar.com/news/insight/2016/01/16/when-us-air-...
The gist of it is: The average pilot doesn't exists.
I'd assume it's not much different with clothing. While the length for instance may fit, the shape of a sleeve or trouser leg may prevent you from wearing it comfortably. You'd need a insane amount of measurement from each part of the body.
That being said, I do feel like the clothing industry could be doing better than they currently are.
But everything would have to be pretty much tailor made. If you could do that on demand and automated, taking into account all these factors and making it as personalised as possible, that might really cut back on some clothes waste. But I have no idea whether this is technically possible, and it's definitely going to be a hard problem to solve.
I'd assume similar services exist in other places, and the clothes may be sent to multiple customers.
In shops, you can try them on. Online, I think it's unavoidable that people try them on at home and send more than half of their clothes purchases back.
Standardisation in the clothing business seems incredibly unlikely. And even when the size is technically correct, it can still be too uncomfortable. You just never know until you try it on.
If you want a truly universal sizing standard that will always guarantee correct sizes, it's going to have to be a lot more detailed than just one or two numbers. It would be a data dump nobody can remember. It might be interesting to have an online service that would remember such detailed sizing info for you and could produce clothes on demand with perfect fit.