Here's why:
* All electromagnetic radiation travels at the speed of light in a vacuum. This speed is a constant, approximately 299,792,458 meters per second.
* Gamma rays and infrared rays are both forms of electromagnetic radiation.
So, while they are different types of radiation with different wavelengths and energies, they travel at the same speed in a vacuum.