These aren’t mussels but rather these are common on live rock and represents a clam but better known as bivalves which are closer to a scallop and filters the water for food and are short lived in captivity several months
Neither mussels nor any other bivalve mollusc - those are goose barnacles. They often grow on stuff that's floating around in the ocean - no idea whether they can survive in a reef aquarium.