I recently had to replace my front chainrings after about 7000 km because the chain was jumping when I applied lots of pressure. The rear cassette was also replaced because the old chain (5k km) had damaged the cogs. So gears do indeed wear out, but it takes a good amount of riding.