To avoid any confusion, this thread is over a year ago back in 1.4.5 and there were no Chicken jockeys back then. The chicken just wondered around and then it got caught in a waterfall and then started wondering around the cave. Then it was found some time later.
Chicken found in a cave