My university had made it mandatory for students to publish atleast 1 paper to graduate from their bachelors degree, and would pay all the associated fees.
Most kids unfortunately did end up paying to publish.