Mendelian recombinations are mainly due to
Independent assortment of genes
In a dihybrid cross both parental types as well as recombinants are produced in the F2 generation. The alleles that determine these two characters are present on separate chromosomes that assort independently into gametes during meiosis. This results in recombinations.