If you’ve already done a bit of programming, you can think of the terminal as a place that executes code. Just look at some bash scripts, and you’ll probably find it somewhat familiar.
Just like you can load new libraries, you can also install new commands on your system. You can think of each program as a function in some programming language such as Python.