The word "hatefully" comes from Middle English hatfully.
hateful – A related word in the same word family.
ly – A related word in the same word family.
The printing press standardized Middle English spelling, freezing many irregular forms we use today.