Honestly no compulsion. But there are mothers who want to give their child's Surname to the maiden's former Name. As already mentioned above it is upon the child's wish and financial health of both the parties so if the custody goes to the mother so in many cases they usually prefer to change the child's surname rest it is all about the respective female’s choice.