Dealers have to do a background check, but this would likely be considered a “private sale” which doesn’t require one.
My hunch is that the tickets state that you have to be over 18 and legally eligible to own a firearm to win, which would be the school’s way of trying to stay within applicable laws.