It’s due to a privacy policy by Google for Android phones and tablets.
Google only allows apps that are pre-installed on your device to capture audio and prevents third-party apps from recording audio in order to protect user privacy. Therefore, third-party apps can’t get the audio output from your phone or tablet.