Dealership inquiry with a few lender to make sure that at least one will approve you, and also witch one will give them the best offer to them.
Now, regarding your 5 inquiries, for the credit bureau it's count as one if they are done in a period of xx (14 days!?! but nit sure the exact time)
But I agree it's very upsetting that the dealership was not transparent with you. But what exactly did you expect ??