As I understand it, polls show a slim majority of Catalan residents actually oppose independence, but people likely to put in the effort and/or take the risk of voting in an illegal referendum will of course skew in favor of independence.
So if the vote proceeds, the Spanish government will be struggling to explain the result as being likely not representative, and illegal in any case, but they'll be doing so in the face of an invigorated independence movement that will be claiming a mandate. Even if the Spanish government's position is correct, this is a very hard PR problem.
If you can quietly prevent the vote from proceeding, you deny the independence movement the ability to claim a mandate, they have less energy, and your PR problem is easier.
Obviously, they got neither of these, but instead got a different flavor of PR disaster.