Sounds like transfer switch / relay contacts are stuck/welded together, this could be the TS inside the Xantrex,
That switches between shore power or inverter power
Could it be there was a power outage recently during the night, or a fluctuation brown out, heat pump is basically A/C in reverse, bringing in heat and blowing cold air outside, I don't know how your coach is wired, but switching power feeding running compressors is not good for the switch contacts, it could have happened automatically if shore power was interrupted, main TS for the RV, would have dropped out , and the Xantrex switch to inverter mode, then switch back to charge mode when shore power returned, fluctuations would cause more problems than than complete shore power outage, fluctuations would cause low and high voltage swings and current surges which could arc and pit contacts, you need to find and replaced the welded contacts, before more damage is done to the RV electrical system, contact a mobile RV tech to come look at your RV wiring
I can explain it to you.
But I Can Not understand it for you !
....
Connected using T-Mobile Home internet and Visible Phone service
1997 F53 Bounder 36s