Boat

Why do some objects sink while others float?