Question shouldn't be as to why, but as to with what ?
Few people here know, most can likely guess it too. Likely a very novel marvel.
PS: In real scenario, Rafale won't even know that F-22 is there / was there. If my memory serves me right, I do remember a DACT where PAF F-7s went against...