I’m not sure exactly what you tried, but it’s actually quite easy to download a file to the Files app.
As a quick sanity check: use something like YoutubeToMP3 [0] to generate an audio file. Then, clicking the URL of that MP3 will prompt a download modal that will save straight to the Downloads folder in Files - right from Safari.
[0]: https://ytmp3.cc/