...and you'd have been 100% doing the right thing. Unless a life is in immediate danger, the smart thing for anyone who isn't a trained firefighter to do, is get out. Stuff can be replaced. They make more stuff all day long.
Also, vehicle fires are really hard to put out with an extinguisher once they're going. Impossible if its a lithium battery or petroleum fire.
* Speaking as some who has done this several times *