It would be less distance and probably shorter overall journey times to service St Helena from Lagos.
To have to go via Jo'burg or Cape town would be more of dog-leg for most people if they have no need to visit south Africa (and are not travelling from Australia)