You did nothing wrong, you should never apologize for protecting your safety. She is a stranger, and you can't give strangers the benefit of the doubt like that in this day and age. She could have robbed you, or she could have had drugs or something else illegal on her and if you were pulled over by the cops you could find yourself in trouble.