Whale oil was also used as a raw material in chemical industry for a lot of things where it was replaced by mineral oil too, e.g. in the production of tensides for washing powder, and not at least was also used for the production of margarine, as fat was rare in the early 20th century.