Historically, navies were far more rigid in structure. Ships were collected in divisions, which in turn were collected in numbered squadrons, which comprised a numbered fleet. Permission for a vessel to leave one unit and join another would have to be approved on paper.
