system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why does oil in a frying pan, sometimes pop while it heats up ?

I am curious as to what causes this issue where sometimes my oil seems to explode upwards and splash all over my kitchen.

It never seems to happen when the Oil is fresh.
It stops happening once the Oil gets hot enough.

But why ?!
gpt
It’s bubbles of boiling water forcing its way out of the oil. The oil in the bottle/can accumulates some moisture from the air after it has been opened. Also the pan might have had some water on it when you started cooking. It stops happening once all the water has boiled away.