Teacup dogs can naturally occur as "runts of the litter," but more often they're the product of intentionally breeding two undersized dogs.
There is no officially recognized teacup breed, and typically no guarantee that the tiny puppy you get from the breeder won't grow up to be a standard-sized dog.