necessarily (adv.)
mid-15c., "inevitably, unavoidably," from necessary (adj.) + -ly (2).