A large part of the money that was funned into research at Xerox came from the government itself in the form of tax breaks and other benefits. So it was not a big sacrifice for Xerox to maintain that lab. If they had to change course was due to government policy becoming less interested in industrial innovation and more focused on offshoring and financial gains for the last decades.