Java, Kotlin: HashMap — Interview Question?

1) Why String, Integer and other wrapper classes are considered good keys?