Unnecessarily has 3 different meanings across 1 category:
Adverb
Adverb
1
in an unnecessary manner
"they were unnecessarily rude"
2
without any necessity
"this marathon would exhaust him unnecessarily"
3
In an unnecessary way; not by necessity.
"He criticized my work unnecessarily, even though I had followed all the instructions perfectly."