Pretty simple and what are these moves I mean besides the two mentioned?
Sturdy allows the Pokémon to survive with 1 HP if attacked at full HP with an attack that would otherwise knock it out. It also prevents One-Hit-KO moves (Fissure, Horn Drill, Guillotine or Sheer Cold).
Source
So Sturdy makes the aforementioned moves fail.
Hope this helps :)