Pretty much every XC racer carries bottles, not hydration packs. Assuming a half decent cage and a correctly placed bottle, there is practically no chance of the bottle rattling out.
OK I agree, but I have had one come out and found others on trails so not everybody has decent cages and places them correctly (including me) they still get mucky though.