Edited for clarity. Simple answer is tax rates between diesel, gasoline, and ethanol. Diesel is taxed higher by the feds, and in most cases by states, but not all of them.
Fed tax rate is 18.4 cents for gasoline, 24.4 for diesel, and 13.1 for ethanol.
States vary for example the largest difference I can find is Pennsylvania:
31.2 for gasoline, 38.1 for diesel, and 16 for ethanol.
So essentially you have an enviromental bias to steer you in the form of a tax.
Two other reasons are:
-High worldwide demand for diesel fuel and other distillate fuel oils, especially in Europe, China and the U.S. and a tight global refining capacity available to meet demand.
-The transition to low-sulfur diesel fuel in the U.S., which is affecting diesel fuel production and distribution costs.