Chromosomes are compressed forms of DNA that contain all genes, having 2 sets of chromosomes as a diploid organism give some advantage to the cells.
Having extra sets of chromosomes compared to other species that have the same but fewer sets is called being polyploid. Organisms are constantly under assault from their environment. Having extra sets of chromosomes makes them better able to cope with the pressures that threaten to wipe them out.