When you go directly to a bank, they can only assess you against their own products and policies.
A mortgage broker can compare multiple lenders and help work out which ones may be a better fit for your income, deposit, goals, property type and loan structure. Sometimes the right lender is not just the one with the lowest advertised rate — it is the one that can actually approve the loan and structure it properly for your situation.