To add to what @anzha said:Where did you get the idea that an SM-6 is supposed to be used as an anti-ship missile?
It costs $5M and only has a small 64kg warhead.
From the way the story reads, it appears that this was a land target (in reference to the DF-21 and DF-26 threat)?Using a blend of information from unmanned and manned ships and aircraft, a guided-missile destroyer launched an anti-surface missile from over-the-horizon to hit a target more than 250 miles away without using active sensors as part of the Unmanned Integrated Battle Problem 21, Navy officials said on Monday.
...
The information was relayed to USS John Finn (DDG-113), which used the blended targeting data to fire a Standard Missile-6 to hit the target more than 200 miles away and beyond the range of its powerful radar.
Source: