A club whose player is a restricted free agent has the right to match an offer. If they don't match it, they get a compensation pick. If they do match it, it forces a trade. Adelaide matched the offer because they want, and will get, a better trade outcome than the compensation pick.
Hawthorn didn't match Sydneys offer, not sure why but I assume they couldn't fit it into their salary cap.