The person is cooking mushrooms in a pan with onions and garlic. they add garlic later in the cooking process to avoid burning it.