It completely depends upon the visa type you are applying and the country you want to migrate, 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 or visit and whether the intentions of the applicant are genuine, they check whether the applicant is meeting the requirements, also whether he/she will be able to survive in the migrating country without any sort of assistance.