Shadow of death / deep darkness
Here’s what it means
The phrase describes deadly danger, thick gloom, severe distress, or the realm of death.
Why the Bible says it this way
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.
A helpful detail: The Hebrew term may mean “deep darkness” in some passages. Either way the picture is extreme danger and gloom.