Needlessly has 2 different meanings across 1 category:
Adverb
without need
"it would needlessly bring badness into the world"
in a needless manner