What purpose of apps.json in sites folder

I want to know about what purpose of apps.json in sites folder ? Does It need for command like bench new-site or bench install-app ? Please explain to me. Thank you very much.

It shows the version, repo and other information regarding the all installed apps.
and yes it is necessary as it is a part of the core file.

apps.json file in ERPNext serves as a crucial configuration file that lists and manages all installed applications (or modules). It helps organize dependencies, track versions, and facilitate smooth integration and customization of modules within the ERP system.