They’re not random; they mean something, and meaning aids memory. Similarly, chess masters don’t develop some incredible memory for where individual pieces sit on a board. Instead, their memory is very context-dependent: it is only for patterns of the sort that would appear in a normal game.