A fish at the surface, mouth working steadily, is not begging for food. It is trying to breathe.
Dissolved oxygen, the oxygen molecules suspended in water rather than bound into the H₂O molecule itself, is what fish extract through their gills. When that concentration drops below what the fish's metabolism needs, it moves toward the top of the tank, where gas exchange with the air above happens naturally and oxygen levels are marginally higher. The behaviour has a name: surface respiration. It is a distress signal, not a quirk.