The final two years at Hogwarts IS pretty much university, by the end of year 5 your are expected to know what career path you are heading down, and every course you choose to keep taking after that point is to help train you for said job, and in 7th year you even do a co-op with that profession for a little while for some hands-on training. After graduation some jobs will do additional training such as Aurors, but many Ministry positions just take you straight from Hogwarts because that’s what your last two years there were for.