When you read the question of Job, it sounds as though he had read Psalm 8:4, or rather David had read Job 7:17, 18, which says,
“What is man, that You should exalt him, that You should set Your heart on him, that You should visit him every morning, and test him every moment?” (Job 7:17-18).
While Job and David ask a similar question, they come from different viewpoints. David thought of the blessings of life, whereas, Job thought of the difficulties of life.
Job wondered why God would exalt man, only to test him.
Do you wonder the same thing? If so, ask God about it.