Working in hospitals for nearly 15 years, having a pt talk to people you cannot see it a tell of days left. Mentioning "I smell bread" usually means minutes, maybe an hour or two, before they pass.
And, no, I have no idea why either of those things happen.