Well, a finite state machine has one or more states. The circuit has to somehow maintain its state until an input comes along that causes it to change state. This means you need some kind of a memory element, the contents of which can be changed at will. A flip-flop serves that purpose.