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.
> "men who gravitate towards dangerous jobs do so entirely because they're stupid" is a hypothesis being made only in your comment.
You're absolutely right, I should have read the comment more carefully. That's on me.
> They are in those jobs because these are the only ones available to them, and they (and their family) will starve without them.
I would say that is also true, and I think both can be true at the same time. For many, there is little choice of job, but there are also somewhat more privileged men who do have a choice and are pushed somewhat more towards the less safe ones. If you were a man living in Europe in the 1960s, and you secretly wanted to be a nurse or a child caretaker, you would have experienced strong pressure against those options and been pushed more into something like construction work, mining, or something with higher prestige (while women would have been pushed the opposite way).