A state machine says what an object is doing right now and what it is allowed to do next. Player movement, enemy AI, menus, and the Animator all get simpler when those states are explicit, instead of buried in a pile of bools and if checks inside Update that all happen to be true at the same time.