This behaviour is thought to have evolved because shiny objects are often associated with resources that are important for survival, such as food and water. By displaying shiny objects, males may be signalling their ability to provide these resources for their mates and offspring.
In some cases, males may also use shiny objects to defend their territory from other males. Shiny objects can be used as a form of intimidation, and they may help males to establish and maintain their dominance over an area.
Overall, the ability of a male bird to find and display shiny objects is an important factor in their ability to attract mates and defend their territory.