Lift the head
Here’s what it means
Someone was restored, vindicated, encouraged, counted, or raised from humiliation.
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: Genesis uses the same phrase with opposite outcomes for two officials, so the context must specify whether restoration or execution follows.