As an engineering student I hated that the textbook companies put out a new edition of the core calc / diff EQ textbooks every two years (you could see it in the front page material) which were always identical to prior editions except for the problems, which they changed slightly. Because the profs assigned those problems for homework, you had to buy the full priced version, the used one was useless even though the content was identical because math is always the same. So shady.
A few reasons textbooks cost a lot: 1) The publishers create lots of materials for the teachers quizzes, tests, videos, PowerPoint slides, case studies, online materials, etc. 2) There are often separate teacher editions of the textbook 3) The publishers give free sample textbooks to the professors (I sold them online, making several hundred dollars) 4) The authors get paid.
For most courses the content in a 3 year old textbook is fine. The biggest problem is the tests and assignments get into leaked.