For same reason that the French funded our revolution against the Brits.
Not.
France assisted the newborn UnitdStates in strategic coordination with their eternal war with England,
and they would be paid back.
As opposed to recent (many decades) US Government policy of spreading US taxpayer money over the globe like so much Halloween candy ..