Dogs and cats have brains, and those brains work much the same way human brains do. Pets’ brains have millions of cell-to-cell electrical transmissions that culminate in neurologic function and thus, conscious life. That’s pretty much how brains work.
Ask a Vet: Understanding the science of seizures