Doctors and STTN

Why do doctors care/ask if your baby is sleeping through the night?

I can see if there is a real medical issue and the baby truly gets no sleep. But I'm assuming that's pretty rare.