It's one of those things that yes, is incredibly annoying, but can't be helped.
My neighbours (when I lived with my parents) had a baby and a toddler, both of whom had the bedroom right by my head. I was doing my A Levels, and was woken up several times a night. I firstly moved my bed so that it wasn't against the wall, but that didn't help enough, so I moved downstairs. I could still hear it, but it didn't wake me up as much.
Babies are babies. There's little that can be done if they're going to cry. Babies don't cry for fun.
If you don't want to be woken by babies, I recommend buying a detached house. Otherwise, there's just nothing that can be done, and there's no point in making parents feel any worse than they already do due to the stress of having a baby at all.