I had to do exactly these surgeries on rats for a few years as a lab tech.
Also did some other fun things such as mass killings of rats using mini-guillotines, harvesting bones and doing amateur brain surgeries while other rats watched restlessly and anxiously peeped from the smell of blood.
This kind of stuff can mess with your sanity. For me it was a converse of how serial killers injure animals when they were children.
Most likely they grab a box of 2-3 rats, take it to a procedure room, and perform surgeries on all the rats in sequence. It's a bit on the lazy end, since you could always do a surgery on one rat, take it back to the housing room, and get the next one. Some labs do not permit animals to observe another's surgery or euthanasia. The rules are more lax for Mus musculus and Rattus rattus, than for other mammalian species, in the US.
They probably don't have much choice for where they did it. The animals likely couldn't see it, and the stress levels were probably minimal. It's not likely to be enough to harm the experiment.
While, yes, everything can be a variable, the effect wouldn't be big. I imagine the person running the lab had done this before and has gotten good results: rats are expensive and a hassle to keep. If his experiments had been 'screwed over' because of practices like that, his PI probably wouldn't be able to gather enough useful data to afford funding for animal use.
Also did some other fun things such as mass killings of rats using mini-guillotines, harvesting bones and doing amateur brain surgeries while other rats watched restlessly and anxiously peeped from the smell of blood.
This kind of stuff can mess with your sanity. For me it was a converse of how serial killers injure animals when they were children.
Still have nightmares sometimes.