The repetition of phrases or sentences with similar structures or meanings is called parallelism. It is also called a parallel construction or a parallel structure. They are often used in speeches as a rhetorical device to make something sound better.