Some of the commands running on extracted content, like javap, require a specific file extension to work, so the original extension is better preserved.