All of the officers were involved in the chaotic U.S. withdrawal from Afghanistan, which independent reviews have blamed on both the Trump and Biden administrations.
This isn't a debate of legal or logical consistency, this is a power play. Investigations and charges of treason are for the opposition, not the Party and those loyal.