The simple answer is that they did not need us to survive. Cats were doing just fine on their own. Then humans invented agriculture. Agriculture led to grain being stored on a large scale, which attracted the usual and well-known group of freeloaders: mice and rats