Military ‘Chaplains’

Why doesn’t it violate the separation of church and state for the state to employ chaplains? More importantly, why doesn’t it violate the church to use its clergy to deaden consciences? (Thanks to Gary Kohls)