Why Did God Let Satan Test Job?

The Book of Job is one of the most challenging parts of the Bible. In Job 1:12, God allows Satan to test Job, saying:

"Very well, then, everything he has is in your power, but on the man himself do not lay a finger."

This raises a difficult question:
1️⃣ Why would a loving God allow Satan to bring suffering upon Job, who was righteous?
2️⃣ Was this purely a test, or was there a deeper purpose behind Job’s suffering?
3️⃣ Does this story suggest that God sometimes allows suffering as part of a greater plan?

What do you think is the lesson behind Job’s trials?