Digital circuit working with logical Low-level and High-level. There is a noise margin build into the definition. If there is noise(on ground or supply voltage, or crosstalk to inputs) above the tolerable noise margin, you get malfunction or faulty function.
Please see here the definition of the logic levels: https://www.electronics-tutorials.ws/logic/logic_1.html .
Enjoy your design work!