Pet Food and Pet XP can be purchased from the in-game Shop.
This can be accessed by navigating to the Main Screen and tapping on the coin bank in the top left. In the shop, scroll to the bottom to find great deals on pet supplies!
These items can also be earned periodically while playing the game. For more information, please read this article.