Why do peacocks dance?

Peacock dance in the rain to attract a female partner. They open up their feathers to attract female peacocks for mating. Male peacock spread their feathers not only in the rain, they dance and open their feathers whenever they feel the need to mate.