Oysters make pearls so they can feel
better. When a grain of sand or debris
gets stuck in their bodies, they ease the
pain and irritation by coating it with
multiple layers of nacre, the mineral that
lines the inside of their shells, and pearl
begins to form. Basically, pearls are
like blisters, only much prettier. Source