The point is that they are useful at multiple employers. An employer, when training an apprentice, incurs a cost in doing so, but cannot be sure that they'll be able to recoup the cost if the apprentice leaves soon after finishing training.
Many small cities do not have police academies. They just hire the graduates from other cities. This is similar to the problem of apprentices leaving.