Why do doctors prescribe antibiotics for viral infections like the flu?

Why do doctors prescribe antibiotics for viral infections like the flu?