During the late stage of pregnancy, guppy females become fairly large, and placing two of them in a small breeding box is simply not advisable.
When female guppies are ready to deliver, they release a chemical that signals other guppies to leave the breeding box. If there is another pregnant guppy in the breeding box, this signal won’t be as effective, and there’s a high risk of cannibalism.