You have to agree the tech involved is complex.
But to put things in perspective, the entire R&D budget for the first iPhone was $250M, and I don't think it was highly optimized for cost.
10B is 40x higher. And this is an average year, for an unfinished product that did not even start from scratch (they started with the Occulus Rift, a pretty advanced prototype)
= low budget + passionate people + toxic environment to work in longterm
OR
= high budget + leetcoders + cushy working environment