Cup of wrath / suffering
Here’s what it means
A divinely assigned experience of judgment or suffering is pictured as a cup that must be drunk.
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 cup’s contents are figurative, but the suffering and judgment are real.