>>28478045It has that moveset because it was a new dex entry and done by evolution rather than hatching or catching in the wild. Compare your Machamp to this one I caught in the wild.
I'm working on trying to prove that the RNG in the game is skewed in some way. Currently trying to find out what kind of RNG they use to determine movesets in particular.
Like you I evolved a Geodude all the way to Golem and got the worst possible moveset. Take a look at Golem's moveset; it's very, very hard to get a bad moveset with the pool of moves you can roll.
And yet it happens, almost every single time. And always 1. When it's a new dex entry and 2. When you acquire the new dex entry by evolution.