In the 1950s, diesel was a very cheap fuel, and it was available in large quantities, while gasoline was scarce at that time.
The engine was installed on a 1950 Beetle, and only two of these models were ever made.