Why is it so important to say "You have the right to an attorney" before arresting someone?

Native speaker’s answer
Rebecca
Good question! These are called the Miranda rights (or Miranda warning) and police officers must read them to a suspect before they are arrested. If they do not, anything the suspect says will be considered inadmissible (invalid, unacceptable) in court even if they are guilty. It's also to protect the rights of the suspect and prevent illegal interrogation by police officers.