Fairy Tale Scrapbook

This story is so odd. How would even the most sensitive person feel a pea 20 mattresses or featherbeds down? 

"One evening a fearful tempest arose, it thundered and lightened, and the rain poured down from the sky in torrents: besides, it was as dark as pitch. All at once there was heard a violent knocking at the door, and the old King, the Prince’s father, went out himself to open it.

It was a Princess who was standing outside the door. What with the rain and the wind, she was in a sad condition; the water trickled down from her hair, and her clothes clung to her body. She said she was a real Princess.

There is a further mystery in this story. What happened to this princess that she was wandering around in the storm and the dark like she was? How did she get to the palace?