Humans don’t speak in the "on/off" (binary) language of gates. We write in high-level languages like Python or C++. The is a bridge. It reads your human-readable code. It translates it into Machine Code (1s and 0s).
Compilers are used to translate software into a form that a processor can execute. logic gates circuits processors compilers and computers pdf
These gates are the Lego bricks of computing: The Building Blocks of Computing: Logic Gates, Circuits,