I don't think any of my childhood authority-figure/parental heroes (Picard, Gwydion, Tintin - well, he'd be more of a big brother) would encourage minors, especially preteens, to go into battle no matter the circumstances; they'd sooner fight and, if necessary, fall without them.
On the other hand, there's Batman and Robin, Green Arrow and Speedy, Captain America and Bucky, Professor X and the X-Men (who were initially teenagers, and whose later roster often included teens like Kitty and Jubilee), Dumbledore and Harry Potter, etc. Not to mention all the teen heroes who operate without adults along, like the Pevensies in
The Chronicles of Narnia, Spider-Man in his early years (or the Miles Morales Spider-Man today), the Teen Titans, Buffy Summers, Kim Possible, countless young-adult novel heroes, etc.
Really, you're taking it too literally, because you're not looking at it from a child's perspective. Young readers/viewers need to learn confidence, to believe they can cope with the challenges the world offers. Of course they wouldn't really try to go out and battle evil, since that's just allegory and children are better at recognizing metaphors than adults often are; but the message that young people can be smart and strong and resourceful and can handle the problems they face in life is empowering and inspiring. Children need to grow up into independent, capable adults, and part of learning adult skills is practicing them through play and imagination.
I mean, yes, to us as adults, the risks of facing a supervillain's robot army is far more intense than the risks of taking a difficult exam or trying to make friends at a new school. But to a child, all those risks are equally profound. To children, all stakes are life-and-death stakes, because the world is new to them and they haven't yet learned to take things in stride. And so stories about young people facing life-and-death stakes are relevant to young audiences. They know they're not actually going to face such crises in real life, but the crises they do face feel just as important to them, and using play and imagination to rehearse problem-solving strategies is healthy. There's nothing "pandering" about it. On the contrary, it's better for kids to rehearse those strategies and skills through harmless entertainment than through having to face real life-and-death crises like children growing up in a war zone.