Blackbody radiation
When it was realised that  classical physics did not work for blackbody radiation, the German physicist  Max Planck explained their relationship by saying that there are individual things (he did not try to guess what kind of things) that vibrate, each at its frequency. Each wave of each frequency has its special energy level. A single x-ray is very high photon energy and can go right through the human body.