Because the lied to the government and misclassified the drug as a generic. By doing this, they can give out half the discount as with brand name drugs. Generics are discounted ~11% when sold to Medicaid, but brand name drugs are often discounted 20-30%.
Then just fine them, why does this have to be a criminal issue? It should only be a criminal issue when they did this knowingly and maliciously instead of checking the wrong box somewhere.