Kind empathy has been demonstrated in some rats (a highly intelligent animal): https://www.youtube.com/watch?v=nyolz2Qf1ms
Note the researchers mentioning a "social contagion" that encourages empathy (another one of your kind crying, you cry). The goal of the experiment is to detect an even deeper kind of empathy (the savior rat is also in high stress and must overcome its instincts to save his fellow rat).
The thing you did for the kid required much more sophistication than that. Some of that sophistication comes from or manifests as empathy, in the sense that they're correlated.
I'm also saying it in a broader sense than only biological in rats. But that's the part that science has no data yet, so that's why I say it comes from my conjecturing ass.
I guess when I say "empathy", I also mean "feeling someone's pain", in addition to the "someone else's shoes".
I think being able to understand someone's situation, and see how they're actually hurting, and how you'd hurt if someone did that to you, is the part of empathy/kindness that is a key ingredient in being a "decent human". I'm not perfect at it, obviously, I've acted selfishly plenty of times and I regret the times that I have, but it's the closest thing I have to a "moral code".
In regards to this kid, I just remember how angry I was at everything when I was 17. I hated going to school, I hated most of my teachers, I hated most of my classmates, I hated girls who wouldn't date me, and I hated guys who wouldn't be my friend. I was an idiot. It's a tough age for anyone, and I think a lot of people (particularly those in charge the US penal codes) forget that fact.