Hardening steel with motor oil is a way of performing what is called the case hardening of steel. Pure steel is actually too soft for many applications. In order to put a hard layer on the steel, carbon must be fused at the molecular level into the top centimeter or so of the steel.