He's smarter than Ramos, but he does get a pass on plenty of yellows.
It's even a running joke with some commentators about what exactly Casemiro has to do to get booked. I'll find a few examples next time I hate-watch RM. I'm talking clear-cut cases like breaking counters with an intentional foul.