Cell membranes consist of lipids that are fat-like by their nature. Since soap works for destroying the connections between the oily compounds, it dissolves the lipids the same as it does to the food’s fat and oil.