This is meant to protect the society from criminals breaking the law and then claiming its protection. One example was a bruglar who fell through the roof of a house he was robbing and successfully sued the owenrs for his inuries. There are many such examples. THose who do crime should not be able to hide behind the protection laws aimed to serve the innocent.
Those caught breaking the law should be put outside its protection.