In 1977, despite the best efforts of some, the US Navy was not an Equal Opportunity Employer. Sexism was a huge issue. Mid-level Petty Officers expected lower ranking females to sit in their laps and stand under the mistletoe at the holiday party. Some even obliged. It was a difficult environment to navigate through.
Add to that a misuse of authority that cropped up in many places and you have the perfect recipe for a hostile work environment.