The mayfly nymph breathes under water through an oscillating array of plate-shaped tracheal gills. As the nymph grows, the kinematics of these gills change abruptly from rowing to flapping. The classical fluid dynamics approach to consider the mayfly nymph as a pumping device fails in giving clear reasons for this switch. In order to shed some light on this switch between the two distinct kinematics, we analyze the problem under a Lagrangian viewpoint. We consider that a good Lagrangian transport that effectively distributes and stirs water and dissolved oxygen between and around the gills is the main goal of the gill motion. Using this Lagrangian approach, we are able to provide possible reasons behind the observed switch from rowing to flapping. More precisely, we conduct a series of in silico mayfly nymph experiments, where body shape, as well as gill shapes, structures, and kinematics are matched to those from in vivo. In this paper, we show both qualitatively and quantitatively how the change of kinematics enables better attraction, confinement, and stirring of water charged of dissolved oxygen inside the gills area. We reveal the attracting barriers to transport, i.e., attracting Lagrangian coherent structures, that form the transport skeleton between and around the gills. In addition, we quantify how well the fluid particles are stirred inside the gills area, which by extension leads us to conclude that it will increase the proneness of molecules of dissolved oxygen to be close enough to the gills for extraction.