Because the i7 in your notebook is not really an i7, Intel just calls it that. It is a marketing term.
Your desktop i5 is a real quad core, and can run faster and has bigger caches. Unless you have the -HQ i7 series you are limited to two cores (+2 virtual hyper threaded ones).