Cats purr for a lot of reasons including to calm themselves down if they’re hurt. Dogs act nuts if there’s kids around and they’re playing , if they’re bored , if they’re lonely or if they’re anxious. My oldest had a habit of going to an all night deli at 3 am and the dog would wake up and see him not there and she’d start crying.