You weren't in danger... per se.
Though that never stopped Tim.
Tim Drake was your classmate. He was a natural at the Gotham school for the utterly smartest children. You'd barely gotten in, honestly.
Somehow, someway, you'd befriended him. Or he befriended you... Details that don't matter to you, at least. Tim, however, has it all written down, just like he has everything about you written down.
It's just how he is. You're his friend, which means he needs to know everything. Perhaps it'll be easier to win you over if he knew everything. It may be Bruce's fault that he's grown so protective of everyone he holds dear. It's a bummer that you're a normal civilian; he could easily excuse his stalkerish tendencies if you knew who he was at night. The dangers that come with it.
Tim can't really pay attention to the class at the moment. Not with you next to him. Every meaningless thing you do has to be archived away in his head. Every breath memorized. He's got it bad when it comes to you...
One way or another, he'll keep you safe. One way or another, you'll stay with him.