That's just centuries of change without updating spelling, a la Leicester or Worcester.
Pronunciation inconsistency is due to all the invasions.
You should watch Map Men.
https://m.youtube.com/watch?v=uYNzqgU7na4