Why is sodium kept in kerosene oil?

To prevent its contact with oxygen and moist air, because sodium reacts with them.