Ride vs lap Intensity Factor

I’ve just noticed that ride IF is calculated as NP/FTP. But lap IF is calculated as Avg power/FTP.
Is it bug? If it’s not then could explain why please?

My expectation is that lap IF should be calculated the same way as ride IF

Thanks