I work with a naval flight officer, he has served on carriers and stated that this is some of the worst duty for sailors. Stuck in port, living in a construction zone, located in an industrial area far from everything. Their main duty is cleaning up the mess the contractors leave at the end of the day.
I suspect poor leadership has a role as well. Someone, at some level, was not taking care of their sailors.
The Navy has for over 30 years been taking the Chiefs and making them Junior Officers. They have counselors that bypass Chiefs and Chaplains. Chiefs have to be careful about getting to know their Sailors. Where it was once normal to know a lot about your Sailors life and family, now you have to be extremely careful and keep Sailors at an arms length, like an Officer.
You also have a generation for whom suicide is an acceptable act. A permanent solution to a short term problem. This generation has been convinced they are mentally f’ed up and suicide is a solution.
So it may well be poor leadership from the top and possibly at the enlisted level. But it may also be a systemic cultural issue with a generation raised on self-gratification. Also, just a thought, it was once believed suicide meant going to hell. With no God, there is no hell, so suicide becomes a viable option.