Why are government loans look down upon?

People always told me if you can avoid any type of debt do so. And I heard that the payment process is a great hassle with the government as oppose to private loans.