Some dogs urinate in the house because they're scent marking.
Dogs scent mark for a variety of reasons, including to claim territory, to identify themselves to other dogs and let them know they've been there, and in response to frustration, stress or an anxiety provoking situation.