I honestly don’t know. I’ve had some strings die after a single sweaty gig, but others lasting for ages, even among the same brand.
I swapped the flatwounds on my precision for some roundwounds to cover a series of function gigs last year - they were just in my drawer in decent used condition but I don’t event know what they were. They sounded great and remained on that bass thru the rest of the year of gigs, and still sound fine now. Weird.
Ive swapped it back to flatwounds for now - this particular set were secondhand back in 2016 and have been around the block a few times judging by the state on the silks, but they still sound great as is the way with flats.
I wonder if better quality basses mean you don’t have the play it so hard to get it to sound good, and in so doing maybe you sweat less and the strings last longer? Who knows?