There are many different explanations floating around. The one I like the most is that it is actually US and that U is placed on top of the S. That's why there are often two vertical lines.
My preferred explanation is that the dollar sign looks like that because the dollar sign creating pixies created it that way.
(all hail the dollar sign creating pixies)