Question: does my xbox have to be on to download games?
Answer: Click on "Settings" → "Power and Startup." This is where you can set the Xbox to use stand-by mode when you turn it off. It will automatically search for and finish downloads and updates. Choose "Instant-On Power Mode." This will keep the Xbox One on standby so it will finish your downloads when the Xbox is off.