If the case was dismissed, doesn't it get automatically erased? +

No. All the records from the arrest/charge are public record and still visible until you have the case expunged. For example, the county clerk maintains the documents of an arrest and disposition indefinitely. This documentation (both physical and online) will describe the charge and say it was “dismissed”. But if the case is expunged, there would be no record at all.