Alliteration is used in poetry for a variety of reasons, the most common of which is that it sounds good. It's a technique for capturing the attention of readers or listeners. Alliteration, like perfect rhyme, gives verse melody and rhythm, as well as a sense of how it should sound when read aloud.