The first one should be "anchored offshore", without a space between "off" and "shore", and the second one should be "anchored off the coast" --- and maybe there isn't a good reason. I'll let you know if I think of one, but sometimes the English language is just a bit weird.