The question is in the title.
Is it because the servers attach lots of stuff to the program before measuring?
If so why don't just subtract the size of the included files so that we get the real memory usage.
There is no way that a program that takes up about 10kB of space and has one function and one integer would take up 2.5 MB of memory.