How it is used
Developers and editors make the change on staging, check it on phones and desktops, run through forms, checkout or booking, and only then push it to production. For WordPress, plugin and theme updates are tested on staging first.
Keeping it private
Staging should be password-protected or blocked from search engines, use test payment keys and never send real emails to customers. Copying the live database to staging should also respect privacy: mask personal data if staff outside the core team can access it.
Questions, answered
It is most valuable for stores, booking sites and anything with integrations, where a broken update costs money.
It was not protected. Add a password or a noindex rule, and remove indexed staging URLs in Search Console.