They didnt know each other before the shipwreck, but he did know who she was...
At the beginning it was hard, but as time passed, this guy learnt how to provide food and shelter, he started taking care of her, and eventually she started caring about him... after all, there wasnt anybody else...