All fungia are free living corals, they are only attached when young, grow to a certain size, then drop off, and are found in rubble zones on the reef.
You'll often find areas littered with them. They are also capable of moving to more desirable areas by swelling parts of their tissue and "walking" along the substrate.