ESSM probably costs more thanks to the specific naval integration bits like the VLS TVC unit.
I'm not sure it would cost significantly more and as for the VLS TVC component those are driven by the same servos that move the tail-control fins and are jettisoned after the missile pitches over. If the ESSM isn't launched vertically it doesn't have the TVC unit installed.