A laptop (or desktop!) computer has a significantly higher energy budget than the iPad. The SoC Apple uses in those devices could conceivably be clocked higher and/or have more cores than the A12 parts they're currently using in the iPad Pro.
Well, it entirely depends on how they designed the chip. If they planned ahead they could design the chip for 4Ghz ahead of schedule and then take advantage of the higher frequency once they decide to actually release a desktop or laptop with an ARM chip. I don't believe that Apple did this so they will either create a new chip exclusively for desktop/laptop or they just keep the low frequency.