I think Firebase gets the version from the android:versionName field in AndroidManifest.xml file (which is contained in the .apk). Have you checked the value of that field?
android:versionName
AndroidManifest.xml