The impact of inflation and a shortage of affordable housing is forcing many cash-strapped pet owners to give up their dogs.