Here and there has 2 different meanings across 1 category:
Adverb
in or to various places; first this place and then that
"he worked here and there but never for long in one town"
"we drove here and there in the darkness"
In, at or to various places; in one place and another.