So spelling rules are based on four distinct "primary" systems of phonics that can be used depending on whether the word or morpheme has a Germanic, Greek, Latin or French origin. (Yes I know French comes from Latin origin, but the spelling rules differ depending on whether the word was imported directly from Latin, or came in via Norman French.) And then the Germanic and French origin words can get even messier because their spelling was standardized before the Great Vowel Shift. And then whenever we take loanwords from other languages that use the Latin alphabet, we preserve that language's spelling. Which creates a whole mess of special cases where the spelling doesn't follow any of the regular phonetic rules.
If you look at languages where the writing system is famously difficult to learn, a common element they all share is etymological orthography.