The official APIs are Java based, ISO C and ISO C++ standard libraries, and the NDK libraries that ship on device.
Series 30, Series 60, brew, J2ME, Psion OS, Pocket PC,....
They were never general purpose computers.
Personally I think it's hard to justify phones as something different than general purpose computers. A device that can load fairly arbitrary apps is already almost by definition a general purpose computers, it's just a matter of what has been built and/or what is allowed to be shipped, and what system resources are available (few, in many of your examples, often owing to it being the aughts). Now that the system resources are clearly no longer a differentiator, it's almost all just corporate-politics & the war-against-general-purpose-computing vested-interests enforcing the distinction.
Not everything with a CPU needs to run yet another UNIX clone.
There are plenty of computers and maker boards for that purpose.
Given that the way you say "things are done on Android" is that tools like termux don't exist, you're effectively saying they should just give up and kill the project. I understand that this is consistent with your view of the OS, but can you understand why nobody involved is interested?
More recent versions will just kill the application if they get used, and Termux folks refuse to accept that they have to go through JNI for specific OS features, so they won't be around for much longer, other than on rooted devices.
Or they might eventually accept how things are done on Android.