From your citation:
Thomas Aquinas accepted the overthrow of a king and even regicide when the laws of the king are untenably unjust, however, and towards the end of the Middle Ages many philosophers such as Nicholas of Cusa and Francisco Suarez propounded similar theories.
This affirms what I said.
In general, Wikipedia is not a reliable source, BTW. It's written by volunteers who may or may not have any scholarly credentials, and may or may not have any axes to grind concerning their subject matter.
I would think that the Popes thought that they had the "Divine Right of Kings"
b'shem Y'shua
as they could do no wrong and when they condemned people who disagreed with them to death.