Nectar functions as a reward for pollinators, providing them with a rich energy source to encourage the transfer of pollen.