When you purchase a piece of military equipment, the required crews are taken from your available labor pool.
Soldiers are automatically recruited from Low Level Workers.
Officers are automatically recruited from Medium Managers.
Be careful with buying to much military too quickly, as if there are not any spare workers or managers, they will be taken from your corporations. This can cause disruptions to your profitability, and in extreme cases bankruptcy.