The Japanese quails are domesticated forms of common quails just like domestication of Prussian carp into goldfish.
In the early 1900s, Japanese breeders began to selectively breed for increased egg production.