If the carpets donated as religious endowment (waqf) were many in quantity, such that the mosque does not require them all and are therefore not used, it is permissible to transfer it to another mosque. Otherwise it is not permissible.
It is permissible to keep a cat as a pet and its hair is not najis. But if cat hair sticks to one’s clothes his prayer is invalid as an obligatory precaution.