When universities reject an application, they clearly note the reason(s) for it. The only way to change that is to address those reasons. This is not the same case with visa. Visa rejection may or may not be accompanied with reasons. If you were given one (however illogical that might be), you can try to address it. If not, better luck next time.