Baby question

My son is 6 months old. For the past couple nights he wakes up briefly and starts to cry but then goes back to sleep. Last night he started crying really loud so I went and got him, comforted him and he went back to sleep. Does anyone know why he might be doing this?!

Also to add, he is tossing and turning a lot im currently watching him in his crib.