Every day, the heart creates enough energy to drive a truck 20 miles. In a lifetime, that is equivalent to driving to the moon and back.
So, when you tell someone you love them 'to the moon and back', you are essentially saying you will love them with all the blood your heart pumps your whole life. Which I think is equally as meaningful.