Photoshop’s Line Tool does not create »lines« like you might be familiar with from Illustrator but polygons (without arrow-heads that would be »plain« rectangles).
So you get an enclosed area (colored with the Fill) and a countour to which you can apply a Stroke.