Is it haram to put animals or birds in cage and keep at home and take care of them in cage? if its allowed, then if I want to free it later, can I just let it go anywhere it wants without having any duty?

It is not haraam, but it is necessary to take care of them.

Once they are tamed they are unlikely to be able to fend for themselves