It is not only the military who takes the oath to support the Constitution and defend it against all enemies. It’s generally most Federal employees. I took the oath as a requirement for one of my former jobs too and I’m not military. I was proud to take that oath and I still uphold it for life.