The armed forces aren’t a randomized trial.
Many people go into harms way because of a necessary duty (firefighters, etc).
The restrictions on medical trials is because of the power imbalance. If I take a job as a firefighter or soldier that’s different from me living my life and being enrolled in some study putting me at risk for harm.