The app identifier is the most important value in Android standalone application setting:

It's used by Android to understand if an app is already installed. This way apps may have the same name, but they must have different identifiers.

Every time you try to install an app with the same identifier of an app already installed, the new app is considered as an upgrade and overwrite the old one.