Depression is an umbrella term that covers lots of underlying biological conditions.
Exercise forms the foundation of a biologically healthy brain which is required for all conditions. For some conditions it’s all you need for others it’s not enough