Natural freshwater pearls occur in mussels for the same reason that saltwater pearls occur in oysters. Foreign material, usually a sharp object or parasite, enters a mussel and cannot be expelled.
Most pearls come from oysters, which thrive in both freshwater and saltwater environments. Oysters are bivalves that means their shell is composed of two valves connected by an elastic ligament.