When fats and oils exit a restaurant, they flow down the sink with the water and the food solids. As they pass through the plumbing system, they separate into three discrete sections. Oils and fats rise to the top. Solid food settles to the bottom. The middle layer is the waste water. The grease trap grabs the food solids and the oils on top.