It's not really built into ‘hardware’, it's enforced by the Secure Enclave, which is software-based and accepts software updates signed by Apple. It's secure against kernel exploits and third-parties, but not against Apple.
I'm really interested to know more about this. Does TouchId secure enclave really enforce the password attempt limits?