Alot, there are different nutrients in cat and dog food,I know this is a common problem but please try and stop this habit try and feed separate times.g.
I used to place my cat's food on a worktop in the utility room and the dog's on the floor.
The only problem I did have was when the cat's flap was locked so she couldn't get out and she poo'd in the dog's kibble!