Pain in hip

If I lie on my sides when sleeping , the next morning my hips do be so sore 😫 what causes this ? Do any of you get this as well ?