Why are antibiotics prescribed with a viral infection like a cold?
In general antibiotics don't help with viruses. However, sometimes a bacterial infection may follow a cold virus, so there might be some scenarios in which antibiotics would be needed. However in many cases it could be due to people demanding antibiotics from their doctor.

You can read more here (CDC site): http://www.cdc.gov/Features/getsmart/