That's because the request doesn't reach the ASP.NET engine and is handled by IIS itself. You will need to add a handler mapping to .htm pages.
For IIS 7, follow the following steps:
Open IIS and click on your website. Select 'Handler Mapping' from the right pane. There are 'Actions' listed on the extreme right and select 'Add Script Map'.
Enter *.htm in the Request Path field.
Give the path to aspnet_isapi.dll in the executable field. (Should be here: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll. If it isn't here check Framework64 folder).
Finally give a name to the handler. Say Html.
Click Okay and try again now.
Hope this helps!