Japanese games very often have this - IIRC in Harvest Moon you even die if you don't get married i0 IIRC 3 yearse. Not to mention dating sims being mainly about this.
Both are more recent than the BioWare examples, and of course more recent than Stardew Valley, which is more in line with the Harvest Moon genre.