If you’re clenching muscles to not go, you might not realise that you are clenching all sorts of muscles up your back, neck and even in your face. This can then cause a tension headache. So really, the same reason bad posture or sleeping in a funny position sometimes causes a headache.