Unanswered (and probably unanswerable) question: Was it deliberate? Or did they get blown off course while trying to go somewhere much shorter, and wind up hitting Malta before they sank or hit somewhere else?
You can see Malta from Sicily if conditions are just right. There's zero chance the inhabitants didn't know there was something there, just a matter of time until someone decides to make the trip.