Sleep as a figure for death
Here’s what it means
A dead person is described as sleeping because the body rests and death will not have the final word.
Why the Bible says it this way
The Bible sometimes uses gentler words for a private or sensitive subject.
A helpful detail: The passages still teach real death, and some explicitly distinguish sleep-language from ordinary sleep.