They are detritus feeders, process missed food and waste generated by corals and fish. The liverock and substrate should be full of them.
DIY reef food, after the blender, showing the various particle sizes.