Revenue maximisation is an 'embedded imperative' of companies a capitalist system, so of course these jobs will be migrated to where they can be done most productively; they will then be automated as soon as the roles become simplified and the AI becomes more advanced. This is neither 'right', not 'wrong' much less shameful; it is simply the logical extension of the socio-economic system we all willingly subscribe to…
First, CBA lied. They said the workers were "redundant" when they were actually being replaced with cheap offshore labor. They lied because their actions were shameful and they were rightfully ashamed.
Second, capitalism is an economic system, not a moral code. If you discover that your rich neighbor's car dealership has a policy of hard selling expensive cars to vulnerable old ladies, would you think "welp, I can't hold that against him, because capitalism incentivizes maximalizing profits"? Obviously not.