It can be cause it is forcing a default pattern, if you have not specified one here:
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
It can be because of redirect type such as the example down below:
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
CLICK HERE to find out more related problems solutions.