Spirit returns
Here’s what it means
A person revives, regains strength, or returns to life.
Why the Bible says it this way
The phrase can describe recovery after food and rest or the return of life in a resurrection account.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.