Because Apple is not selling an "OS", it's selling an iPhone. Their users are using "apps" and not "programs".
I'd say something like GNUCash is an application, but hledger feels more like a program. Brewtarget is an application, but bc isn't.
Certainly app and application are synonyms.