Regarding the SWTOR story:
From Wikipedia: "An October 2008 preview noted some of the 12 full-time writers had been working on The Old Republic for more than two years at that point."
They had at that time many veteran and gifted SF writers (Drew Karpyshyn and others).
Someone in the management of the game decided that the Story should be good. And resources were allocated, able people found and the result speaks for itself 10 years later.
Today we have a different reality.