"Good morning," Hermione returns dutifully. She and Madam Pomfrey aren't precisely friendly, but the nurse respects her obvious intelligence and interest in learning. They've established a working relationship which might currently be the healthiest interaction in Hermione's life.