how do children learn gender role behaviors
From their environment. This includes their parents, peers, media and culture. This is called a 'social construct'. That being said, some children will develop their own perceptions on gender roles from their personal opinion and experience as I have.