How do these people get caught? Isn't crypto supposed to be anonymous or something?

Some coins are designed to provide a degree of anonymity. Bitcoin & Ethereum do not.

The article says "he took credit for it on the social media platform X".