This trait has been passed down to your domesticated dog by their distant relative, the wolf. We are going to use this characteristic to housebreak your puppy.
Some people think that putting a puppy in a crate is cruel.
I personally feel it is worse to come home to a mess and possibly scold your pup who was so looking forward to your return and has no idea why you are so angry. Puppies learn from their mother not to soil their beds. When you buy the crate you can purchase one to fit your pup now or one to fit when the pup will be older. You want the crate to be just big enough for the pup to stand, turn around comfortably, and to lay down without being totally cramped. If you place the crate too close to the door the pup could get cold.