Endospore forming is a genetic-depended characteristics, The bacteria with this capability produce their endospore everywhere and anytime; even in the best media
Spore formation is a survival strategy. Usually, it occurs under starvation, when an essential nutrient becomes limited. Actively growing cells do not sporulate. Obviously, a certain compound in your medium is exhausted and triggers spore formation.
I agree with the answer of Helmut Brandl. Spore forming is a survival strategy e.g. Bacilli choose either to grow actively (viable cells) or they form spores if the conditions are not favorable for active growth. Most probably your growth medium has not the optimal composition of nutrients. What for a bacteria do you try to culture? Do you want only viable cells and no spores for your experiment?
I disagree with Dr. Brandi, we are working on endophytic bacteria in our lab for a long time. Some of them blongs to Bacillus sp.
Even in the best growth conditions, most of the time we can see lots of endospore even in the very fresh culture. Harsh conditions just increase numbers and speed of endospore forming.
In all bacteroilogy lab manuals, if you check endospore detection or endospore staining section, you can't see any protocol for pre-stimulation of endospore. All says, prepare a bacterial culture then stain endospore.
Spore forming and any other type of bacterial dormancy is a survival strategy. However, this doesn't mean that a culture cannot have cells that stochastically enter a state of dormancy, even without a stress or trigger. This stochasticity is well documented in antibiotic persistence (a type of bacterial dormancy). This is thought of as a bet-hedging strategy. As in, the bacteria enter a state of dormancy even though conditions are optimal, which allows them to be prepared to survive any potential future environmental stresses. This is evolutionarily advantageous for the species. It's like an insurance policy. This stochasticity is thought to be due to random fluctuations in gene expression, and there is some evidence for this. A similar phenomenon may be occurring in your cultures
Also, you are likely growing a culture from a bacterial stock, which probably contains spores to begin with. So the spores in your growing culture may simply be the spores that are present in your stock.
Spore formation is a common nature of bacteria. When the bacterium senses that its home or habitat is turning bad: food is becoming scarce or water is disappearing or the temperature is rising to uncomfortable levels. it depends on bacterial growth.. how fast bacteria grow in culture with optimum condition
There are a lot of controversial discussion on this matter and any scientific Subject indicate the unstability and absence the Final Word. We previously knew that endospore formed when the culture media became old and We learn that as a fact but now this fact has been change.