I guess France was in because of the old imperial secret club left over from the 19th century. France still held substancial colonial holdings after WW2. Also the US and Britain felt bad for the Frenchies.
UN:
US formed it.
UK earned a seat.
Soviet Union earned a seat.
China earned a seat.
France was along for the ride.
