There isn't anything you can do with a cat five cable that you can't do with your shoeladce or a belt (except of course connect to an ethernet network), so it was an overzealous security person.
I carry ethernet cables all the time in carry on and never had a problem.