Hi @Ankit Jain ,
I don't think it is an issue, I think it is by design. While your application is running in IIS, the files are locked and we can not update the files directly.
I think you can just stop the site as you mentioned in question and then update the files. Or you can also choose other methods for deployment.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.