Daly City is not "always foggy." It has a Mediterranean climate (mild, wet winters; warm, dry summers).
The famous fog is primarily a San Francisco phenomenon, caused by:
Daly City, immediately south of SF, is less affected because it's slightly inland and shielded by topography. It gets some fog, especially near the coast, but significantly less than SF.