A gas tank is on the bottom as well, though I guess it doesn't run the entire length of the car either.
The other thing to keep in mind is that the fuel tank is usually located in the rear of the vehicle while potential ignition sources (engine) is located in the front. This can reduce the risk of a fire as well. However, the exhaust system runs to the back of the car.