This is an example of how some apps like file managers, antivirus and other apps that depends on access to DirRootExternal to create folders, create files and read files from the Root of the device.
NOTE: This cannot be published to the Google Play store unless your apps CORE functionality depends on all files access, and you can prove to Google as such, following the best practices.
developer.android.com
NOTE: This cannot be published to the Google Play store unless your apps CORE functionality depends on all files access, and you can prove to Google as such, following the best practices.
For example, an anti-virus app's primary use case might require regular scanning of many files across different directories. If this scanning requires repeated user interactions to select directories using the system file picker, it provides a poor user experience. Other use cases—such as file manager apps, backup and restore apps, and document management apps—require similar considerations.
Manage all files on a storage device | App data and files | Android Developers
This document explains how certain Android apps, such as file managers or anti-virus software, can request and utilize "all-files access" (MANAGE_EXTERNAL_STORAGE permission) to gain broad access to a device's file system when standard privacy-friendly storage methods are insufficient.