If you had bad dreams before taking your pet to the vet, it probably means you were anxious. If you have knowledge that your pet is seriously ill,, then you would be worried. Your anxiety is likely to trigger negative thoughts, which in turn activates your brain to invent dream imagery that fits the theme of your thoughts.