JP-4 is mostly what I refer to as white gasoline or wide cut gasoline with a small percentage of high grade kerosene. The civilian Jet A is the other way around with mostly high grade kerosene and a small percentage of white gasoline. I've worked on a few turbine shaft engines that can even run diesel fuel for winter operations. Turbine shaft engines could burn near any type of low viscosity fuel but some are better and some are safer overall so that's what the difference is based on. Military can get away with the lesser cost fuel in JP-4 but I think the Navy only uses JP-5 which is basically similar to civilian Jet-A but it has a higher flash point. JP-5 is a safer fuel to contain on Naval ships so we pay the price for it.
In aviation, we are taught to keep the fuel tanks full. This is for both flight safety and for better fuel system preservation. 100LL avgas is very high quality gasoline that still has tetra ethyl lead in it but the amount has been reduced so it can be used in more general aviation aircraft. The old 80/87 fuel is rarely stocked anywhere in this day and age so operators either have to use 100 Low Lead or use an STC based mix of fuels to lower the octane. Aviation fuels don't have much in the way of oxidizer mixed in like Mogas does. The ethanol is an oxidizer that increases volatility of Mogas but it also absorbs moisture. As is absorbs the more dense mix drops to the bottom of the tank and the little bubbles of that slowly get more acidic and that causes further deterioration of the mix over time. If the vehicle is used regularly then there is not any big problem but if it sets a lot then the fuel goes bad. Higher octane Mogas does last longer but it still has the ethanol so time runs out on it too, Avgas will stay stable for a much longer period of time. Jet fuel can have microbial growth which leaves clot like gel substance rolling around on the bottom so it doesn't last as well as avgas but longer than mogas. When the military puts an aircraft into long term storage (60-days or more), the maintenance crews have to drain the jet fuel out and put light oil in it's place. They bleed the systems with light oil so it fills the system and preserves it. To put it back in service, they drain and filter the light oil into special tanks, then refill and purge with jet fuel. They take it seriously. Most of us hobby DIY guys don't always take things that seriously due to the time involved and the expense of equipment involved.