This behavior was interpreted as the formation of gender roles. This is the way in which culture makes us uneducated or educates us to be women or men with completely differentiated roles according to the sex with which we are born. These roles are formed from childhood by our parents who inculcate values and distinctive attitudes and are reinforced by ourselves to imitate the socially accepted behaviors for the gender with which we identify.
I hope my answer can help you.