The way this scene is presented, I get the impression that the humans had it coming. The dragon is going after the pyramid, rather than the mobs of peasants, so I'm guessing some cult got up to no good, and the dragon got stirred from his nap to put them in their place.