That's confusing the decision to work on something with the quality of the folks working on it. Brilliant engineers often work on things which are risky from a market perspective. It doesn't make them less brilliant at engineering when it turns out there isn't a market for the thing.
John Carmack appears to be brilliant. I'd guess he would admit the VR market didn't turn out as hoped.
While in many cases folks are overpaid in big tech, some of them are insanely talented people who can do things others simply cannot.