The two lines in |-3| represent something called absolute value, which means that you interpret that value as its distance from 0. Distance is always positive, which means any number's absolute value is positive.
The difference is that |-3| is positive and -3 is not.
Hope that helped you.