They aren't.
The U.S. Marine Corps was added to the Posse Comitatus Act in 2021 as part of the National Defense Authorization Act for Fiscal Year 2022. This amendment expanded the act’s restrictions to include the Marine Corps along with the Navy and Space Force.
The Coast Guard is still exempt...which is mostly meaningless.