Investing for short-term savings goals can help you earn higher returns than keeping money in a traditional savings account.