It completely depends upon the visa type you are applying and the country you want to migrate, in a few countries it is a mandatory requirement to attend an interview as a part of the process. Normally they want to know the purpose for migration and whether the intentions of the applicant are genuine, they check whether the applicant is meeting the requirements, and also whether he/she will be able to survive in the migrating country without any sort of assistance.