Essence. When you set aside money for investments, you give them the opportunity to grow over time.

By buying an unnecessary thing, you stop the growth of this money in the future.