Why oh why

Why, or why, when my dogs want to spit up or… throw up… do they feel the need to come and do it in front of me – even when I’m in bed and they are trying to barf on the bed? I love when they share but do they really have to share this?