It restricts you from doing them within retirement accounts. But the purpose of retirement accounts is to effectively save for retirement. Congress is basically saying we want you not to need us but we don't actually want you doing well with your investments.