Why does my dog want the cat food and my cat want the dog food?



I use quality foods for each pet and they constantly sneak in and eat eachothers food. My dog has a special food for joint disease and my cat has food for nursing mothers. I mean what is the point of paying all the money for specialty foods if they arent going to eat their own?