The repetition of the same vowel sounds inside of words that are close together

is called vowel assonance. This literary device is used to create a musical or rhythmic quality in writing and can help to emphasize certain words or create a sense of cohesion within a passage of text.