why does a compass needle placed near a current carrying conductor show deflection?
The current carrying wire generates magnetic field and when the compass needle which is actually a small magnet comes near the wire then the needle get deflected due to magnetic force of wire.