Nudibranchs are awesome critters, but not the best for reef tanks. They have specialized diets, where one species will spend its entire life (a year or two, they don't live long) eating on one type of sponge or coral. They don't have varied diets. So, if this guy wasn't eating on that coral it came on and if it didn't find the specific corals or sponge that it eats in your tank, it would have died in your tank from starvation and would have fouled the water.