Endurance: Mindset, Muscle, or a Bit of Both?

As someone who loves cycling and fitness, I’ve always wondered is endurance more about mental grit or physical strength? Or is it like a good investment portfolio, where balance is key? Curious to hear what others think!