In many jurisdictions an engagement ring is considered a conditional gift (conditional upon her agreement to marry you).
This is logical. Otherwise why not string along as many man as possible to the point of proposal, then thank them for the shiny ring and wish them farewell? Take the strategy to its inevitable conclusion, and if the woman in question calls off the engagement at any point, she should return the ring.