Some public high schools specialize in enrolling students. Take Japanese teachers as an example, there is no charge for offering Japanese. If it is a training institution, there is a charge.
In some places, Japanese is listed as a foreign language subject, which, like other subjects, does not require extra money.