I mean, I think it also correlates with poor environmental and financial outlook on the future, more pressure to perform well in activities or academically, stricter rules around going outside and doing things on your own or friends without scrutiny, among other things.
Females are far more likely than males to attempt suicide, and males are far more likely than females to die by suicide (be successful in their attempt).