Mike Myers, who was doing the voice-over for Shrek, came up with an interesting feature for his unusual character by the end of working with the cartoon. It seemed to him that the green ogre would sound more plausible with a Scottish accent. That’s how Myers wanted to highlight the difference between Shrek and the other characters, who were communicating in standard English. In order to not lose the main voice of the cartoon, DreamWorks had to agree and spend $5 million (which was 10% of the total budget) to revoice the whole movie.
There, I fixed it for ya, "Wrong"..