Turning to the
Cambrian explosion one finds the first clear evidence of ancestors of many present-day animal phyla, though there are some oddballs that are difficult to place, like the archaeocyathids, some roughly conical sponge-like reef-building animals that went extinct in the middle of the Cambrian.
As to why it happened, my favorite hypothesis is the emergence of predators, animals that try to catch and eat other animals. That stimulated the evoluition of protective features like hardened skin and shells and burrowing -- and we find multiple evolution of such features.
Bivalve | Ohio Department of Natural Resources
Brachiopods vs Bivalves - Digital Atlas of Ancient Life
Consider bivalves and brachiopods.
They both have paired shells, and they look much alike if you don't look at their shells very closely and don't look at the shells' owners at all, but bivalve ones are originally left and right shells and brachiopod ones are originally dorsal and ventral ones. So the ancestors of bivalves and brachiopods evolved their paired shells separately.
There are some possible bivalves in the Cambrian Period, but bivalves became easily recognizable in the Early Ordovician period, a little later.
Bivalvia
Recognizable brachiopods go back to the Early Cambrian.
Brachiopod
Brachiopods were very common in the Paleozoic Era, more than bivalves were back then, but the Permo-Triassic mass extinction hit brachiopods much harder than bivalves, and that is why we eat clam chowder and not lampshell chowder.