Consider Moses and Pharaoh. Though by no means perfectly following God's will, Moses lead the people of Israel by following God's call to lead Israel. On the other hand, Pharaoh wouldn't even acknowledge Yahweh (Exodus 5:2) much less willingly do what God wanted. Both carried out God's will but in vastly different ways.
When you look at the context of Hosea 8:4, Israel (the northern kingdom) had not followed God and thus did not seek God's will in appointing their leaders. They worshiped idols. Thus, they accomplished God's will in many ways more like Pharaoh rather than Moses.
Put the trumpet to your mouth!
Like an eagle the enemy comes against the house of Yahweh
Because they have trespassed against My covenant
And transgressed against My law.
They cry out to Me,
“My God, we of Israel know You!”
Israel has rejected the good;
The enemy will pursue him.
They have set up kings, but not by Me;
They have appointed princes, but I did not know it.
With their silver and gold they have made idols for themselves,
That they might be cut off.
(Hosea 8:1–4, LSB2022)
Consider the Roman government in which the Romans Paul wrote to ended up executing Paul and Peter. Paul wasn't saying Rome was perfect, but their rule allowed Paul and other missionaries to travel between countries in the empire as if it were one country. Looking at Acts the Roman government tended to protect Paul from local and regional governments. Basically, government were the police enforcing the law. It wasn't like Judges where they were oppressed by every raiding party.
Another aspect is Paul was telling them not to seek overthrowing Rome to set up their own government. Christianity conquered Rome one person at a time, not by military action.
Every person is to be in subjection to the governing authorities. For there is no authority except from God, and those which exist have been appointed by God.
Therefore whoever resists that authority has opposed the ordinance of God; and they who have opposed will receive condemnation upon themselves.
For rulers are not a cause of fear for good behavior, but for evil. Do you want to have no fear of that authority? Do what is good, and you will have praise from the same;
for it is a minister of God to you for good. But if you do what is evil, be afraid; for it does not bear the sword in vain, for it is a minister of God, an avenger who brings wrath on the one who practices evil.
Therefore it is necessary to be in subjection, not only because of that wrath, but also because of conscience.
(Romans 13:1–5, LSB2022)