People keep making threads about this. It's just a 'smart' system of advertising. The way it works is basically, Habbo sign up to the company who buy the adspace. Then the ad's work by looking at what sites you've visited and project ads relating to those websites.
Exactly. Habbo don't personally pay MySpace or have a deal with MySpace they have a deal with the AdSpace agency.