You seem to have missed the point there, there's no causal connection being made between those two things; rather, the connection is only that both fundamentally say "men vary farther from the median than women do", but in different contexts. "men who gravitate towards dangerous jobs do so entirely because they're stupid" is a hypothesis being made only in your comment.
> I think for the most part they are in those jobs because they feel their society expects it of them in order to be seen as “truly masculine”.
They are in those jobs because these are the only ones available to them, and they (and their family) will starve without them. The way you've phrased it reeks of a privileged HN bubble type thinking where they had a choice and chose the more "masculine" one. Society in most parts of the world does expect men to earn their living more than it does for women, and that pushes men more towards these because of that obligation and lack of choice. To spell it out more clearly, the gender roles do play a role, but not in a way where it pushes men from a hypothetical "safe job" to "dangerous job"s, rather by removing the option of "no job" for men and leaving "dangerous job" as the only option for many.