You must have a Lesson card in your graveyard while you attack with Fire Nation Cadets in order for the firebending 2 ability to trigger. If you put a Lesson card into your graveyard after Fire Nation Cadets has attacked, Fire Nation Cadets will still gain firebending 2, but the ability will not trigger.