When homologous chromosomes line up, they sometimes break off and swap some of their chromosome. They are swapping for the same (homologous) information, but it creates variety within the resulting chromosomes. Whether this occurs in a homologous pair or not is random.