Why does a compass needle get deflected when brought near a bar magnet?
A compass needle gets deflected when brought near a bar magnet because magnetic force is exerted by the bar magnet on the compass needle, which is itself a tiny pivoted magnet.