You cover your ears from the natural air when you wear headphones which increases the production of bacteria by 700% in 1 hour. Your eardrum cannot bear influx of bacteria in that much quantity so it starts to react by paining or hearing loss in long term.