I meant to say that my classmates missed me, so "They missed me a lot."

For the first sentence of my paragraph, why must I write "lorsque," rather than "quand." On my sheet, my teacher had also put in her sentence the word "quand," so I just followed her format in writing this sentence.
This is it,
[i] ex.) J'avais 5 quand j'ai commenc