Most ads use multiple tracking pixels for various 3rd party analytics and measurement. Some of these analytics require runtime inspection of the page to confirm things like domain, viewability, height and width, page language,etc. So your average ad requires loading a dozen empty images ("pixels") and running a bit of JavaScript.