This article estimates at a 40kg sailfish uses about 2.7 megajoules per day of energy when hunting. That’s about 650 kcal.
An 80kg human weighs about twice as much and needs about 3 times the energy, without even exertion.
Warm blooded animals spend a lot of energy just maintaining body temperature. Plus water doesn’t have very much oxygen in it, compared to the atmosphere.
Yeah, evolving lungs ended up clearing the way to make use of the much more plentiful oxygen in the air compared to what is dissolved in water. Amphibians and reptiles have pretty low metabolisms, but birds and mammals basically evolved endothermy (aka warm bloodedness), probably in support of much higher muscular power output. Ectotherms (aka cold blooded animals) have metabolisms that are correlated to temperature, which means they can’t exert themselves as well when it’s cold. Endothermy allowed animals to be warm all the time, and therefore use higher muscular power output in any environment, especially sustained.
That means mammals and birds were able to cover more distance, and survive in places where reptiles and amphibians can’t, and all the advantages that carries.