Species that are very close to each other could accidentally mating and produce a hybrids offspring.
BUT in nature life is more complicated than that.
There are natural barrier to prevent accident breeding to occur which is “reproductive isolation”
These are: prezygotic barriers (before fertilization)
postzygotic barriers (after fertilization)