Typically, developers code apps in Android Studio on a PC. Enabling USB debugging allows them to send data and commands between their computer and their phone.
But that isn't all debugging can do.
We can use the same feature to access a phone’s files and control them from our computer. The cool part? It works even if the device display or touch screen is broken.
Why You Should Keep USB Debugging Enabled on Your Android Phone
https://www.howtogeek.com/why-you-should-keep-usb-debugging-enabled-on-your-android-phone/