This is due to the fact that they are considered an exotic animal and there are regulations in place to prevent the introduction of invasive species and protect public health.
While some people may keep hedgehogs illegally, it's important to follow the law and respect the regulations in place.