Gorons are able to swim in lava because they're made of rock. This makes them resistant to both fire and extreme heat, which allows them to live in volcanic areas. Goron Garb also helps make Link impervious to lava.