There are other explanations that would cover both his initial Anonymous activities and his rapid cooperation with the police, like enjoying the attention and power that comes with getting one over on other people.
In the same way that trolling forums posting racist, awful things is easy from behind a computer screen the same is true for "cybercrime". I once committed a pretty serious felony and it was easy to do because it wasn't a violent crime and it didn't feel like theft. It felt like a victimless crime. Crimes that seem victimless are really easy to commit. Anyone who meets me cannot believe I'm anything but an upstanding respectable citizen but I also didn't think of consequences before I did what I did. So I can understand how he could not think of his kids before he started hacking. When I got caught I took a deal too. It's something you just can't understand until you've been there.
Sorry to rant. This wasn't directed towards you specifically. It's just that what you said reminded me of some people I know who like to "protest" but are all talk and full of BS.
This surprises me, actually: he was willing to invest a ton of time and effort in this, but rolls over at the first sign of trouble? It's not like it's surprising that he eventually got caught...
So we can't know what Hector's state of mind was, but we know that when he was confronted with prison time and the immediate loss of freedom he responded by mitigating that with co-operation. If you compare the impact on his personal life of that choice, versus 'taking one for the team', well it seems he made the right choice for Hector.
I suspect that recruiting people who would make the right choice for 'the cause' would require a different strategy than what is currently employed by the Anonymous community.
It supports law enforcement's narrative that Anonymous is a group of criminals with no honor or allegiance to one another.
An incident that comes to mind immediately with Greenpeace & law enforcement is the killing of one of its activists in New Zealand by the French Secret Service in 1985 when they sank the 'Rainbow Warrior'.