It would certainly be cheaper to build a new surface ship to do this than to build a new submarine to do this, but as long as the submarines are already here and we're paying their operation costs and crews and support, etc., this might be a more "bang for the buck" way to use a few of them than to just have them waiting around for a full-scale nuclear war that may never come.