Because the user has given Alt+Enter to create new lines in the cell for each entry.

In B1 Cell
=SUBSTITUTE(A1,CHAR(10)," ")

Drag it down…

Copy the formula cells and use paste special and change it to values.