Yes, API and GUI are different from a hardware product or command line enterprise software and as such requires specialized approach and techniques.
But GUIs and APIs are usually a very thin layer above the actual business logic and features, when designing a test you you obviously check that the GUI itself (colors or location of elements for example) or API (relevant fields have relevant values for example) works as expected, but we need to remember though that those have a purpose and they do not exist for the sole purpose of being there.
The color of a button or the value in a response field of an API deliver a message to the user, clicking a checkbox has more behind it than the visual part- it actually acts on some information and influence how the software works.
To summarize, GUI and API are only tools for testing the product specifications and do not stand by themselves.