Ana Lucia and Libby were both killed off because they both faced legal problems in their real lives due to drunk driving charges.

And maybe the actor who plays Eko had personal reason to leave the show? Because yeah, I really do think that it was a pointless, random, and very sudden death. So maybe there's more to it on the personal/business side of things.