This question could be extended to other monarchs such as Lady Jane Grey, Mary I, Elizabeth I, Mary II, and even Elizabeth II at the time of her coronation in the fifties. I understand that the rules for coronation and succession are different in the UK but I'm still surprised that something as progressive as a female leader would have been allowed by the government or the populace in the 1800's, let alone even earlier.
There's probably more that can be said, but I've written on this topic a few times:
Did ruling Queens in historical Europe face gender discrimination?
Were women monarchs as respected as their male counterparts?