So why is it required to swear an oath to the Constitution???
To support and defend the constitution of the United States. Thus we swear allegiance to the Constitution, the founding document of the US government and the federated states. We do NOT swear allegiance to an individual or to a specific office/office holder.