Both experience equal magnetic forces by Newton’s third law. The light compass needle pivots freely with negligible friction, whereas the much heavier bar magnet has high inertia and is held stationary by static friction with the surface.
Home/compass needle (which is also a magnet) exert a magnetic force