But it’s not all mental. As you rest, breathing slows and blood levels of carbon dioxide dilate blood vessels, making nerve endings more sensitive. And, with less movement, nutrition to cartilage diminishes and joint linings can become slightly congested, causing swelling and additional pain. Nighttime is also when cortisol, your body’s own anti-inflammatory, is at its lowest level.