I think it's just part of the bonding process rocking and singing is a natural instinct so it makes them calm down and then later smile and babble back.