When we need to power things on the moon, we'll put them there, too. For now, we need to generate the power near (within a few tens of miles) where it must be used. The reason for this is that as we transmit power, we lose some as heat. The further we transmit, the more we lose.