He may have fallen asleep there and isn't warm/awake enough to move over to bask.
If he looks healthy, he's likely fine. When I find my dragons away from the light in the morning and super sleepy, I move them over to bask and warm them up. Otherwise, they'll eventually go bask unless ill.