As sand is very easy to trace words into, and we allegedly learn as we grow older (or hopefully!), I'd like to say that phrase means something like this: Learning in youth is difficult and therefore more valuable; as it will endure much longer.