Just speculation on my part, but maybe!
The inverter shuts down when it detects low voltage, therefore since you ran it direct to the battery, assuming it is the only battery you have in your truck, when you crank the engine the starter motor is drawing down the battery and the inverter senses...