I would suggest that the Military - so long as they do their job - have just as much right to express confidence and/or preference in their leadership as ... say a Political Party has the right to change its Leader and political focus without reference to the electorate?!
Actually, given the respective work nature, remuneration packages and associated job risks of the military and political environments - perhaps your observations would be better directed towards any political party that might be contemplating such leadership changes?