Dogs have floppy ears due to a genetic trait known as "domestication syndrome." This trait is believed to have developed as a result of selective breeding by humans over thousands of years. Floppy ears are seen as a characteristic of domesticated dogs, while wild dogs and their ancestors typically have upright ears. Floppy ears may have also been favored by early humans because they make a dog's facial expressions more visible, aiding in communication and bonding between humans and dogs.