Spaceflight and endurance swimming can both cause the heart to lose mass, say researchers.