I have things like this...except mine are yellow.
I call mine spaghetti worms.
A lot of things will come into your reef, explode, and then enventually die down as they are limited by food.
Except for aptasia which they are not.
As far as them only living near sponges, it is probably because the sponges bring food to them.