When raw shrimp comes into contact with baking soda, its muscles begin to have an electrical spasm, which causes it to expand. Though you may think that a less constricted shrimp would be more porous, the looser structure of a shrimp that has been treated with baking soda will actually retain more moisture, ultimately resulting in juicy, perfectly textured shrimp.