The booster always follows a trajectory for an ocean landing until it passes a bunch of safety checks, and then it diverts to the launchpad. This way a failure early on can't cause it to crash on land.
What probably happened is it failed a safety check (e.g. a sensor read out of range) and so it didn't divert to the launchpad. It's cheaper to dump the booster in the ocean than to build a new launch tower if it's destroyed in a failed landing. They have an assembly line for boosters, but only one fully complete launch tower at the moment.
What probably happened is it failed a safety check (e.g. a sensor read out of range) and so it didn't divert to the launchpad. It's cheaper to dump the booster in the ocean than to build a new launch tower if it's destroyed in a failed landing. They have an assembly line for boosters, but only one fully complete launch tower at the moment.