There are a few different causes of this.
One is that the medicines are not used regularly. Another is that the medicines do not work as well as they need to, either due to a low dose, or just that they are not effective. Perhaps an alternate medicine or treatment is needed? A third is that some of the seizures are not the kind that are treated with medicine (like nonepileptic seizures).