S/w. But isn't caging birds going against their natural instincts ? Also, can we pet cats?

Yes it is and it applied to all animals and birds.
Keeping cat as pet it is makrooh
And remember prayer with cat hair is void.if it will be at home it will be hard