Most commonly known as a byproduct radioactive decay.
Their energy is very high compared example to more common radiation such as visible spectrum, and there is a neat reason for that: it's because the strong force that binds nuclei is strong so transitions lead to large energy changes.
A decay scheme such as Figure "caesium-137 decay scheme" illustrates well how gamma radiation happens as a byproduct of radioactive decay due to the existence of nuclear isomer.
Gamma rays are pretty cool as they give us insight into the energy levels/different configurations of the nucleus.
They have also been used as early sources of high energy particles for particle physics experiments before the development of particle accelerators, serving a similar purpose to cosmic rays in those early days.
But gamma rays they were more convenient in some cases because you could more easily manage them inside a laboratory rather than have to go climb some bloody mountain or a balloon.
The positron for example was first observed on cosmic rays, but better confirmed in gamma ray experiments by Carl David Anderson.
Published as "Fine Structure of the Hydrogen Atom by a Microwave Method" by Willis Lamb and Robert Retherford (1947) on Physical Review. This one actually has open accesses as of 2021, miracle! journals.aps.org/pr/pdf/10.1103/PhysRev.72.241
Microwave technology was developed in World War II for radar, notably at the MIT Radiation Laboratory. Before that, people were using much higher frequencies such as the visible spectrum. But to detect small energy differences, you need to look into longer wavelengths.
This experiment was fundamental to the development of quantum electrodynamics. As mentioned at Genius: Richard Feynman and Modern Physics by James Gleick (1994) chapter "Shrinking the infinities", before the experiment, people already knew that trying to add electromagnetism to the Dirac equation led to infinities using previous methods, and something needed to change urgently. However for the first time now the theorists had one precise number to try and hack their formulas to reach, not just a philosophical debate about infinities, and this led to major breakthroughs. The same book also describes the experiment briefly as:
Willis Lamb had just shined a beam of microwaves onto a hot wisp of hydrogen blowing from an oven.
It is two pages and a half long.
They were at Columbia University in the Columbia Radiation Laboratory. Robert was Willis' graduate student.
Previous less experiments had already hinted at this effect, but they were too imprecise to be sure.