Let's not forget the monarch at the time had serious mental health issues.
It's also worth noting that by this point in time the monarch was not really the decision maker for most affairs of state. While he was likely the most politically powerful monarch after the Glorious Revolution, Parliament was nevertheless still calling the shots.