Yes, go get digital copies of Stars and Stripes for the last ten years, and you will see many cases where Enlisted and Officers are brought up on charges, court martialed, and convicted, for things like this.
Simple. Because politicians transfer from the legislative branch to the executive branch. They (generally) don't entered the armed forces. If they did, I'm sure they'd make sure they have equal protections there as well.