This is part of socialization.
Socialization is a term which refers to learning how to behave appropriately. So, these parents want their sons to have their 'expected' manly roles, which is why they are letting them play with 'boys' toys only, whereas their daughters are expected to be more feminine and therefore can only play with 'girls' toys in order to teach them how to behave appropriately in the society when they grow up.