Put to sleep

if dogs are put to sleep for attaching children why aren’t we doing the same to pedophiles?

if dogs are put to sleep for attaching children why aren't we doing the same to pedophiles?