You are correct...they flower at the end of the growing season to attract pollinators and reproduce. Not all of them flower but since yours did it's a good sign of what a good plant parent you've been. Your plant has all the resources it needed to reproduce. Yay you!!