Shakespeare could have set the story anywhere. Why Denmark?
More of course can be said, but this older answer from /u/harmania may be of itnerest.