Penelope honestly had that coming. If you've only just survived an assassination attempt and some random person with a terrible reputation sneaks up on you in the dark and where they have no business to be, then of course you're going to be a little jumpy. I doubt the prince survived this long by politely waiting for suspicious-looking strangers to state their business. And hey, at least he's giving her chance to explain.