The link for the file uses the attachments GUID. The name of the attachment is simply a property of the field and only used for display purposes. The attachment is actually stored and displayed using the GUID that is created for that attachment.
If you don't want this to happen then you should consider using the media library or a custom document type.