The best explanation for why magpies are protective over their nests is: c. Magpie swooping is generally a defensive action taken when someone the magpie believes intends harm.
This option clearly addresses the protective instinct of magpies and why they behave defensively, particularly in relation to their nesting sites.