Sleeping on your side can compress local muscles and nerves, resulting in poor blood circulation and nerve irritation, hence the symptoms of hip pain. The same causes of hip pain as those caused by prolonged sitting can be relieved or eliminated by changing the sleeping position or by resting properly and giving a local massage.