Earlier, the sound of two o's was not that of [u], but of 'o'. Then, during the Great Vowel Shift, when vowels shifted upwards, the pronunciation for oo became what it is today, while the spellings remained as they were.