Planned. They wanted to test restarting the engines as if it was reentering the atmosphere.
Too bad about the loss of fuel pressure from the header tank. SN8 wasn't quite on the landing pad, but it was close.
We also didn't see the landing legs deploy, not sure why that didn't happen.