The primary role be law enforcement

Why do we have police? Should the primary role be law enforcement, community service, or something else?