There's a fictional example of this in Project Hail Mary by Andy Weir (The Martian) where a 'microbe' in space 'lives' off the sun's energy.Could most life elsewhere have evolved to take nutrients directly from minerals and energy without the stage where some organism somewhere "decided" on the shortcut of consuming something else or feeding off of its corpse?