I think the article describes one good reason for why we dream, one of the benefits of dreaming, but it doesn't have to be the only or even main reason. I think it's most likely that dreaming provides multiple benefits, and what the article claims is one of the minor ones.