It appears hardwired into our evolutionary history via sexual selection.
It makes sense though to improve genetic fitness — we are all animals after all. Many other species like ours, peacocks with their tail feathers (and many other bird species), deer with antlers, and even many species of fish like the colorful guppies.
Our cultures and civilizations didn’t spring up in a vacuum, but reflect that evolutionary history, with markers for genetic fitness and resources.