Countries like Australia don’t need the passport to be deposited with the embassy. However few countries it is a mandatory requirement, it depends upon the country which you want to migrate and visa type you are applying.