I’m more tempted to say that BA took the decision with the intention of getting the aircraft back to the UK for an engine change….otherwise there would be greater problems with getting a spare to LAX.
I wouldn’t have thought that something as basic as an engine surging would require an engine change. Perhaps DarrenBe can give a better idea.