First, a correction: The Walking Dead is a TV series (and comic), not a movie.
The cause is an unknown pathogen that reanimates the dead, driving them to attack the living. The exact origin—viral, bacterial, supernatural, or otherwise—is never definitively explained in the show.
Robert Kirkman (creator) intentionally left the origin ambiguous to focus on human drama, survival ethics, and societal collapse—not outbreak investigation. The mystery underscores the characters' helplessness.