Purpose of T flip-flop in this circuit (LED)
When Q is high the potential difference between Vcc and Q its small, so the LED is off.  When Q is low, the potential difference between Vcc and Q is higher, so the LED switches on.