Taxes matter for investment accounts. Brokerage accounts are taxed on earnings. But, retirement accounts like traditional IRAs and 401(k)s grow without taxes until you withdraw. Roth IRAs let you withdraw money tax-free in retirement.