The purpose of the onomatopoeia is to describe a sound and make a sentence more interesting. Rather than simply stating that a noise was heard, the onomatopoeia invites the reader to actually hear the noise.
Didn't find the answer you were looking for?