Although female mosquitoes are the ones that feed on blood to initiate egg laying, they also do take nectar from flowers. I am not sure if this mosquito was using the flower for that purpose, or if was just using it for a resting place.