hey what up I’m about to be That Asshole
This isn’t a mammalian thing. When people talk about ‘eyes on the front’ or ‘eyes on the side,’ they’re really talking about binocular vision vs monocular vision. Binocular vision is more advantageous for predators because it’s what gives you depth perception; i.e, the distance you need to leap, lunge, or swipe to take out the fast-moving thing in front of you. Any animal that can position its eyes in a way that it has overlapping fields of vision has binocular vision. That includes a lot of predatory reptiles, including komodo dragons, monitor lizards, and chameleons.
(The eyes-in-front = predator / eyes-on-sides = prey thing holds true far more regularly for birds than it does for mammals. Consider owls, hawks, and falcons vs parrots, sparrows, and doves.)
But it’s not like binocular vision is inherently “better” than monocular vision. It’s a trade-off: you get better at leap-strike-kill, but your field of vision is commensurately restricted, meaning you see less stuff. Sometimes, the evolutionary benefit of binocular vision just doesn’t outweigh the benefit of seeing the other guy coming. Very few forms of aquatic life have binocular vision unless they have eye stalks, predator or not, because if you live underwater, the threat could be coming from literally any direction, so you want as wide a field of view as you can get. If you see a predator working monocular vision, it’s a pretty safe assumption that there is something else out there dangerous enough that their survival is aided more by knowing where it is than reliably getting food inside their mouths.
For example, if you are a crocodile, there is a decent chance that a hippo will cruise up your shit and bite you in half. I’d say that makes monocular vision worthwhile.
Which brings us back to OP’s point. Why would dragon evolution favor field of view over depth perception?
A lot of the stories I’ve read painted the biggest threats to dragons (until knights with little shiny sticks came along) as other dragons. Dragons fight each other, dragons have wars. And like fish, a dragon would need to worry about another dragon coming in from any angle. That’s a major point in favor of monocular vision. Moreover, you don’t need depth perception in order to hunt if you can breathe fucking fire. A flamethrower is not a precision weapon. If you can torch everything in front of you, who cares if your prey is 5 feet away or 20? Burn it all and sift among the rubble for meat once everything stops moving.
Really, why would dragons have eyes on the front of their heads? Seems like they’ve got the right idea to me.