Pakistan has barred Indian registered aircrafts from using its airspace but it shouldn’t apply to entities like Lufthansa and Air France. So they are probably doing this out of precaution.