According to Albert Einstein's theory of photoelectric effect, metals will only emit electrons when the incident light has a frequency that is above the minimum or threshold frequency.
So if the frequency of the incident light is less than the threshold frequency then electrons will not be emitted from that metal.
Because if you change two things then you do not know which one has affected or altered the dependent variable. if you only change one then you know what exactly changed and why