The idea for the song came about when Ringo Starr was on a boat belonging to comedian Peter Sellers in Sardinia in 1968 . The idea for the song came about when Starr was on a boat belonging to comedian Peter Sellers in Sardinia in 1968 .