Quantum mechanics is pretty hard to get your head around, but once you see and understand the evidence for wave particle duality it starts to make sense.
Here I show you the classic gold leaf electroscope demonstration of the photo electric effect. Only light above a certain frequency will discharge the charged zinc plate.
We call this frequency the threshold frequency.