On the Origins of Gender Roles