You probably don't know or don't care, but there is more to running a company than producing a new hardware product line (which is important of course too).
Under Tim Cook, Apple's business functions (procurement, manufacturing, operations, financing, retail) had an incredible change in efficiency and cash generating capability. Also, you may notice that Apple Services are an incredibly large and profitable business in their own right, having grown from nothing about a decade ago.