Answer:
Magnetism surrounding the wire draws the needle toward the wire.
Step-by-step explanation:
The wire itself has it's own magnetism also, that's why, if you put a compass near it, then the compass will get confused and point the wrong direction.
Thanks!
MiniMeteorologist