Even acknowledging that he plays a legal role in how Canada operates (technically) its still ridiculous that anyone would have to do this, or get in trouble for refusing. An oath to obey the laws of a country, sure, but swearing loyalty to an unelected monarch seems like it should be optional at the least.
You are correct about this, Im not disagreeing.
Im just saying it would be nice to have the choice between the traditional oath and a non-royal version for whatever personal reason. “I promise to be loyal, steadfast, and obey the laws of Canada” (etc). Seems like that wouldnt negate the technical role of the monarchy, I dont know.