Could there if there is any difference between the question why would anyone do that and why would anyone have done that? For example:
Sara says somebody has stolen her pen. That's insanity. Why would anyone do that?
Sara says somebody has stolen her pen. That's insanity. Why would anyone have done that?