As Kaz-K said, they'll need your login to your Mac, obviously, but there should be no reason why the tech would need access to any of your other passwords. So while I can't say for sure since I don't know exactly what he/she was asking for, it seems a bit odd to me.
Whenever you have to give login details to anyone else for diagnosis and repair of any of your devices, it's wise once you get the device back to immediately change passwords to your login, Apple ID, and anything else critical; certainly any passwords you gave the tech. While most Apple-authorized service centers are honest, you never know when you'll encounter a bad actor.
Regards.