Card counting is indeed impossible on games with a continuous shuffling machine that shuffles after every hand (or every few hands). But many games don’t use those, because they’re expensive, and even non-advantage-players dislike them for superstitious reasons.
Indeed, plenty of games do use CSMs which is one of the many reasons card counting is harder and less profitable than it was in the past. But it’s not impossible.