Answer by taking a quote from the following article:

"Louie Louie" is an American rhythm and blues song written by Richard Berry in 1955 and best known for the 1963 hit version by The Kingsmen. It has become a standard in pop and rock, with hundreds of versions recorded by different artists. The song is based on the tune "El Loco Cha Cha" popularized by bandleader Rene Touzet and is an example of Latin influence on American popular music. "Louie Louie" tells, in simple verse-chorus form, the first-person story of a Jamaican sailor returning to the island to see his lady love.

Richard Berry was inspired to write the song in 1955 after listening to and performing the song "El Loco Cha Cha" with Ricky Rillera and the Rhythm Rockers. The tune was written originally as "Amarren Al Loco" ("Tie up the crazy guy") by Cuban bandleader Rosendo Ruiz Jr., also known as Rosendo Ruiz Quevedo, but became best known in the "El Loco Cha Cha" arrangement by Rene Touzet which included a rhythmic ten-note "1-2-3 1-2 1-2-3 1-2" riff. Touzet performed the tune regularly in Los Angeles clubs in the 1950s. In Berry's mind, the words "Louie Louie" superimposed themselves over the bass riff. Lyrically, the first person perspective of the song was influenced by "One for My Baby (And One More for the Road)", which is sung from the perspective of a customer talking to a bartender (Berry's bartender's name is Louie). Berry cited Chuck Berry's "Havana Moon" and his exposure to Latin American music for the song's speech pattern and references to Jamaica. Richard Berry released his version in April 1957 (Flip Records 321), originally as a B-side, with his backing band the Pharaohs, and scored a regional hit on the west coast, particularly in San Francisco. When the group toured the Pacific Northwest, local R&B bands began to play the song, increasing its popularity. The track was then re-released as an A-side. However, the single never charted on Billboard's national rhythm and blues or pop charts. Berry's label reported that the single had sold 40,000 copies. After a series of unsuccessful follow-ups, Berry sold his portion of publishing and songwriting rights for $750 to the head of Flip Records in 1959. While the title of the song is often rendered with a comma ("Louie, Louie"), in 1988, Berry told Esquire magazine that the correct title of the song was "Louie Louie", with no comma. Although similar to the original, the version on Rhino's 1983 The Best of Louie, Louie compilation is actually a note-for-note re-recording created because licensing could not be obtained for Berry's 1957 version. The original version was not released on CD until the Ace Records Love That Louie compilation in 2002.

How did Berry come up with the song?
after listening to and performing the song "El Loco Cha Cha" with Ricky Rillera and the Rhythm Rockers.