Military people can't participate in protests or demonstrations, at least not in uniform, but are usually allowed to express their political preference, at least when asked. The Marine was only saying how he felt, and it isn't a sentiment unshared by the majority of military people.