Why would Dundee-Gatwick be better than Dundee-Stansted ?
At the very least a Gatwick route would involve extra flying time, so the overall city centre to city centre journey time might be faster for Stansted assuming onward travel to London is by train. Airline also gets to save fuel costs