I read somewhere in the last 10 years that dreams were practice for real life situations. After hearing that, when I awake in the middle of a dream, I always test that hypothesis, and sure enough, sometimes is quite plausible.
https://www.psychologytoday.com/blog/the-literary-mind/20091...
as a reply to your snarkiness.