Your plant became stressed, and in severe conditions will create male flowers to attempt to insure survival of the species. If the plant was younger , It could have pollinated itself and then you would have seeds.