The writers were making it up as they went along. It was always, "Wouldn't it be cool if this were to happen?" They didn't know how to end it and the final episode still left a lot of questions unanswered.
But that's okay because "Lost" for me became about the characters. And those characters were unforgettable.