So is it cheaper to dump the booster in the ocean then land it back at the tower and then have to dispose of it?
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.