Shell scripting
Think of a shell not as a programming language, but as a program meant to run commands, one after the other; every line is an instruction, a command.
This alone makes it clear why most of the time you have to wrap a variable in quotes, because otherwise it will process its content as a command to execute. The more you think it in this way, the easier it gets to understand the peculiarities of shell scripting.