Wheel Bearings. How often do they go bad?

The roads aren’t too bad. I live in the city of Chicago. Some roads are a little rough though overall they’re fine. I don’t know about the warranty on the wheel bearings. I’ll check with the mechanic. My guess is they don’t have a long warranty given that the mechanic I used did the bearings twice.