It really comes down to cost. Managing change, and cash in general is a huge time and risk bucket, so some banks eat the cost, and some pass it on to you directly through fees or hoops to jump. Most branches removed individual branch coin counters for the larger banks, using centralized processing places to manage coins. Smaller banks may distribute more load to branches by having machines in larger branches or making customers roll.
But yes, the lawsuits raised the risk profile of in-branch machines so away they went in most cases. And so did dealing with massive, heavy bags of coins, which are much harder to move than they appear from bank heist movies.
TD Bank was esp. loved by kids... but also lawyers, as it was a great story to tell: kids losing their hard won pennies through a miscounting machines, and since the machines only undercounted, "gasp, must be malicious evil banks again after our money". After multiple suits, bye bye to the machines, and bye bye to yet another way to teach folks that saving can be fun, even if it's less fun than spending.