You said, "What happened to Job? Did Satan just attack him and persecute him? No... God allowed it to happen. "
No doubt God being omnipotent, he could stop any person, human or spirit, doing anything. And the corollary to this is that He allows whatever happens to happen. But that is not the same thing as God gives to every person whatever happens to that person.
"7 Because of the extraordinary
greatness of the revelations, for this reason,
to keep me from exalting myself, (the Greek here says "to keep me from being exalted") there
was given to me a thorn in the flesh,
a messenger of Satan to [
b]torment me—
to keep me from exalting myself!" (the Greek here says "to keep me from being exalted) 2 Corinthians 12:7 NASB
The Greek text does say "the thorn" was given "to keep Paul from being exalted". It does no specify
who might exalt Paul, whether Paul might be exalted
by himself; or whether he might be exalt
by God; or whether he might be exalted
by other believers. The text does say "the thorn in the flesh" was "a messenger," not "a message"; and "from Satan", not "from God".
That's all we are told. Anything we might surmise beyond these facts is disputable. If it was a demonic spirit (a messenger) that satan had set onto Paul, and since the Holy Spirit gives believers authority over demons, it would be reasonable for God not to take the demonic oppression away, because we are told tha we should submit to God and resist the devil to make the demon flee from us." In other words, God's grace, the Holy Spirit, was sufficient for Paul to keep the demon from succeeding in its opposition to Paul.
It is logically fallacious to assume that what God does in one situation must be the general pattern by which He acts in all situations. In Job's case God had set a hedge around Job because of Job's righteousness. Satan accused God of buying Job's allegiance with blessings, so God removed most of the hedges protecting Job and allowed satan to get at Job to see whether Job would remain faithful and God-honouring. In the end Job's faith did fail, but he repented and was restored. But it was satan who attacked Job, and God did not send the devil to Job. He only allowed satan to do the evil satan himself had been lusting to do against Job.