The lottery system is super injust for those that put the work but aren't admitted. A lot of countries in the developed world don't have the admission problem because they fund education properly.
Generally this problem is solved by having lottery buckets, with higher average grades giving access to a separate bucket (with more spots relative to the applicants). This gives people who "put the work" a higher chance to be admitted.