Pets can become infested by fleas when out and about or when mixing with other animals that are themselves infested. You may spot a flea or two, usually little black dots on your pet’s belly.
https://www.homesandgardens.com/solved/signs-you-have-a-flea-infestation

