Earlier quoted context omitted.
Who got robbed? Just because I'd pay for AI it doesn't mean I'd buy these books.
You should ask the teachers who spent years writing those books.
Also, there are various incentives for teachers to publish books. Money is just one of them (I wonder how much revenue books bring to the teachers). Prestige and academic recognition is another. There are probably others still. How realistic is the depiction of a deprived teacher whose livelihood depended on the books he published once every several years?