Lying to the police / Authorities is called perjury and is illegal in many places, that's why he was arrested. It's like trying to mislead the police or hide evidence from them.