Your question is too general and I also believe that this is the wrong forum for such general IT questions.
To give you a short answer anyway:
It ultimately depends on the software. There are applications that are so abstracted from the underlying platform that the hardware is completely uninteresting. For example many web applications. They run on a web or application server that can easily run on Windows, Linux or MacOS and on a Rasberry Pi, Macbook, Dell PowerEdge server or even on your smartphone.
Or software with its own runtime environment, such as Java, has a similar behavior.
However, there are also software that is very system or hardware oriented. The hardware and the operating system play an important role here. For example, software that directly accesses the hardware or peripheral devices.
At the end, support matrixes or compatibility lists are usually only a selection of hardware and software components that have been considered and tested by the company during development. The vendor says that this platform works well. But that doesn't mean it can't run anywhere else. The manufacturer just doesn't know it because they may never have tested it and they don't want to provide support for all kind of hard- and software platforms. That's it.
Greetings back from Switzerland. ;-)