Staging environment as a reconnaissance platform
Staging environments often run identical code to production but with debug mode on, verbose errors, and relaxed auth. An attacker who finds staging gets a map of the production API: its endpoints, data structures, error behavior, and internal architecture.