Two things come to mind as long as you aren't noticing any issues with shift into gears.
Your cable could be binding up and needs to be lubricated. They make lube for motorcycle cables that don't attract dirt that work pretty well.
Cable has worn out from lack of lubrication. If lubricating either doesn't help at all, or only helps for a few days, you may need to replace the cable with a new one.