Create El Capitan installer thumb drive from Catalina
Honsestly I find the easiest way to make a bootable macOS installer is using DiskmakerX.
It is a GUI interface to create pretty much all recent versions of macOS. Just look for the one specifically for the version you want to create.