My Doberman used to do this.
If I was away for just a weekend he wouldn't eat. It's like they know who the caregiver is and it's almost like a form of anxiety where they can't eat till the Mommy gets back home.
IDK, I always thought it was so odd because he had a wonderful, playful, loving relationship with his Daddy. But I was the one who mainly fed him.
On the flip side, he was known to chew on the remote control if his Daddy was gone.