Completely platonic explanation that's also staggeringly unlikely: He's the friend closest in distance, so it would be him who sees (and cares about) her bed hair. She's clearly troubled with it, so she thought he too would be bothered by the bed hair. To make sure he could focus on the lessons, he asked if her bed hair is weird. Knowing it won't disturb him, she can relax and wait until the break.