Lying in bed unable to fall asleep is often called conditioned or learned arousal, reports TIME.

“If someone is a good sleeper, then each night they probably get in bed and fall asleep. So when they get into bed it triggers this auto response of sleepiness,” Gehrman says. “But if you spend night after night tossing and turning not being able to fall asleep, then your body associates that with your bed instead.”