As soon as you call “Add to Viewport” your Widget is a Part of the HUD your Player Controller is associated with.
Thats the relationship between HUD and Widget. The Widget will then be a childcomponent of your HUD.
And since your HUD´s main purpose is “Drawing” you are able to see those children on your screen.