Those things show how prices/wages could be linked across industries through opportunity cost of the laborer. It doesn't suffice to explain how a sex pay gap could emerge. If hiring men were more expensive (because they have greater opportunity costs), then just don't hire them--hire the women, or whomever is willing to accept the wage you're willing pay for the particular labor services desired.