If a projectile is thrown through lava, it's set on fire since it's an entity. If it then hits a TNT it ignites the TNT. But if the flaming projectile hits a mob it won't set them on fire.