As stated, most pet birds live in regulated environments . This is not a bad thing, but consistently warm temperatures can stimulate egg laying. Temperatures over 75 degrees are important for unwell parrots, but healthy hens should not be kept consistently at or above this all year around. This seems to hold true for most small species-cockatiels, lovebirds etc. Egg laying, however is physically stressful on the bird.
Egg laying depletes the body of calcium, proteins and valuable minerals.
Because of this, the diet fed is very important. Consult your avian veterinarian for the diet best suited for your bird. Birds that are strongly bonded with their owner , or a mate bird, are more likely to lay eggs. We see this commonly in singly kept female cockatiels. This does not mean that you should run out and buy other birds.