Depends entirely on usage as you’d expect!
I’ve seen decent quality rims (mavic open pro’s) go in under 2,000 miles underneath a normal size guy, riding year round, on an immaculately maintained bike. Seen big big guys riding through filth for years, never a care in teh world toward cleaning rims/keeping on top of brake pads and get 8-10k over a few years.
I’ve *just* thrown a set of mavic 217xc rims away after about 15 years service. Rear was a freaking joke to be honest though, must have been less than 0.8mm wall thickness left in the mid part of them (dodgy as ****). They did 4 years of mountain biking, then 10 years of commuting/SS/abuse, no idea how many miles, anywhere between 6-15k, no idea!