what does it mean that the phosphate moiety remains free at 5'
As you can look in the figure, the phosphate group represented by P is attached to two groups when present between two sugars but at the 5' end, it is attached only at one side leaving the other free which means that the phosphate moiety is free at 5' end.