If the “immigrants” didn’t try to sneak into the country illegally, they wouldn’t have drowned. Actions have consequences.
Lampedusa hosts an “immigrant reception center”. If they were going in that way, they were going in openly rather than “sneaking”. The EU encourages this, although unofficially.