(The near infrared range corresponds to the typical energy differences between different vibrational states of the atoms in a molecule. Such energy differences are smaller than the energy differences encountered in most chemical reactions, which involve extracting or adding atoms from/to the molecule, which obviously needs more energy than the vibration of those atoms, when they remain bound in the molecule.)
Thus it is normal and expected that the output molecules of an exothermic chemical reaction may be in an excited state from which they can decay to their ground state by emitting light exactly in the visible range.
As long as it is living, in any organism a lot of exothermic chemical reactions happen. In many cases the energy produced by those reactions is used for something useful for the organism (i.e. the excited output molecules transfer their surplus energy to other molecules), but it also may escape as emitted light, reducing the efficiency in the use of the energy produced by an exothermic chemical reaction to less than 100% (the efficiency is also reduced when the energy of the excited molecule is transferred to other molecules than those intended, which eventually results in warming the environment instead of doing useful work).
So you're saying that there is something special about the visible spectrum? I've always wondered why most eyes we know of work in that range (modulo some leftovers from our time as aquatic creatures)
It's also special for a few other reasons. The most obvious one being that UV light is destructive to many forms of animal life, there isn't much utility in being able to see for example something like X-Rays. They don't occur naturally in any quantity and the mechanisms that create them (lightning) also give off visible light.
On the other end of things, lower energy photons are what we would call heat. Some animals can see it, but not humans. We can sense it just fine through other mechanisms however.
https://www.sciencedirect.com/topics/physics-and-astronomy/s...
https://en.m.wikipedia.org/wiki/Black-body_radiation
You can see it in the picture, the radiation is very wide.