Not really ALL motors, just DC (and AC/DC universal motors).
Well, in the 19th century, they only had DC electricity (from voltaic piles), so having a commutator allowed development for motors. Motors make machines, and machines were very productive. It allowed western civilisation to...