The difference between the two cases is in poles-in-interval. In the first case, there are no poles in the interval. In the second case, poles-in-interval thinks there are poles at minf and inf. Hence, maxima thinks we have a principal value integral.