Kings are rulers. Peasants are people of low social status. Uprisings were a "peasant surprise" sounds like "pleasant surprise". So, in the literal sense, the uprisings by the peasants were surprising. Although "peasant surprise" sounds like "pleasant surprise" I'm sure they weren't for the king.
Kings sometimes found that uprisings were a peasant surprise .