Why do butterflies hover over flowers?

It apparently eats the nectar in the flower with its proboscis.