Translation: If only women knew their place and didn't try to get into the workforce, that's where men belong.
Leaving aside all the reasons related to the health of mothers and their children (and there are many), providing paid maternal leave usually makes business sense (perhaps not for minimum wage insecure jobs, and some small companies). Trained employees are an asset to companies, and maternal leave helps them retain that expertise, and knowing that it will be available makes female employees more confident in their place in the company. Companies that provide leave are more attractive to prospective female employees, helping them attract good staff. Even when it is not legally mandated, many big companies do provide generous maternal leave: it's a business decision, not an altruistic one. It may come as a surprise, but some companies do provide nurseries on site, they make it easier for women to return to work.
In many countries governments fund maternal leave, although some mandate it as an employment condition. In Australia the government funds 18 weeks at the minimum wage, but when that was introduced, many big companies already offered 12 weeks at full pay, and most have maintained that. Some countries also fund paternal leave, as that makes it easier for families to manage the early years of childhood. Some allow couples to choose whether the father or mother takes much of the leave, some in Scandinavia allow some leave that is only available to new fathers.