There are many, many different formulations for expandable foam. Some set very light, airy, and soft and some set much firmer.
It is hard to imagine foam ever being as dense as concrete but I could see it working. But cost of material and equipment, and the learning curve may be a big factor.