They don't. Ever!
I have a 5.5 year old who still wakes about once a fortnight due to bad dreams, tummy ache, whatever. But the good thing is I can pop him in our bed and go and sleep in his bed, not possible when your lo is in a cot!
As my mother says, once children arrive, you never sleep the same again.