As the water began to freeze, the surface tension of the water was strong enough to keep the ice from rising up through the oil.
It froze to the side of the glass and then was firmly trapped at the bottom.