The platform I learned to develop on was a very small cellphone; learning to live in tight resources is a skillset that sadly not enough people practice. Even today on much larger systems I still out of habit minimize code and resources more than I need to.
Here's a quote of his I kept with me from those days, paraphrased.
So no wonder he made such compact C code for the C64.