The reason everyone is getting on the boat is that all the elves are going back to the original home of the elves and abandoning this continent to be ruled by men. They offered Bilbo, Gandalf, and Frodo a chance to sort of 'retire' there as compensation for all of their sacrifices and work towards defeating Sauron in his latest bid for power.