Mostly this. Historically, in the countries mentioned, India, China, and many other more tribal cultures, having a female child or having many well fed, well treated brides is a symbol of wealth and prosperity.
>Look at me fggts, I have enough money I can feed and adorn my useless sacks of meat and give them good lives. Can't work em but damn they look pretty don't they?
There are cultural differences at play here that don't seem to be considered, most feminists want to white wash it, but, let's take Islam as an example.
In Islamic practice, a woman has no obligation to provide for the family, even if she has a job whereas her husband does not.
She has received an education and is in the workforce, she has two children. If the children starve, it is the husband's fault.
A man did not receive an education because she did. While yes, it's very possible she will share her earnings anyway, there is a different mentality there.
In China, a male heir is expected to hold up the family, take care of the parents when they are old, live with his parents until they pass or at least contribute monetarily so that their quality of life doesn't change. If they have a farm or a business his desires are completely submissive to keeping that family business or farm running even if every reason in the world exists to end it.
A female heir is expected to find a good man to marry. Nothing else. Just to get her out of the house so she's not another mouth to feed. Her husband might be expected to fill the male heir role in some cases if no blood son exists.
There are cultural reasons for why things are the way they are, to expect whole nations to change, their religion, their centuries old practices, you must truly be delusional. Or white.