CTO sets the technical and architectural vision, also security and toolchain being used etc. You can think of it as CTO is leading the technical vision, while a VP of E is helping out managing the team on a daily basis, organizing the product work, managing sprint resourcing etc.