On top of this, in certain fields, costs appear to remain stable and even go up a bit over time. In these industries, there typically isn't much demand for lower specc'd (AKA outdated) hardware. Often these products last such a long time that the used old models serve as the low cost market. Apple even copies this model by keeping their older products around longer than other companies and selling them at a lower cost.
In addition, the development of many industrial electronic products is extremely expensive and the markets are small (think 100s to 1000s per year). The company typically has to charge a very high price to stay in business.
While it's easy to look at something and think "I can make that with an Arduino or Raspberry Pi," this is basically the hardware equivalent of telling people you can make Facebook in a weekend (which used to be a popular claim here on HN years ago).