I see the comment is getting downvoted and I’d like to know why. AFAIK many languages had really very vague spelling rules and often several being used at once.
I heard during the Times of Napoleon, less than 20% of France proper actually spoke and understood French.
Spelling was different because peoples all over any country were actually speaking very differently. Someone in London was quite different from someone in Birmingham and so on.