Why doesn’t Windows tell me which program / process is using that specific file I want to delete

Most of you should already at some point experienced this when using the Windows operating system: You want to delete a folder, Windows will gladly delete every file except that one file which is used by a sneaky program or process which you can't identify no matter what.

As a seen from a User Experience position, why doesn't Windows tell me what program(s) is / are using this specific file, so that i can decide what to do next.

This bugged for a long time as i don't quite get why this information is not provided to the user.