Making a can of "foam" presents some technical difficulties and in order to solve them you have to make a lot of compromises in other areas. You can't use very much water and still get a good foam so they don't put much in and consequently it will not hydrate the hair very well. Also (mostly) in order to get them to foam properly they include a lot of Sodium Lauryl Sulphate which is a really good foaming agent but also a skin irritant and just not good. They tend to use a lot of the lower molecular weight oils (like coconut oil) which foam easier - but higher weight oils (like tallow or stearate) are generally better for your skin and are usually less irritant.
You can't generally get around these problems and still produce a reasonable can of shaving foam so pretty much every canned foam has the same undesirable properties.
Proper shaving soaps and creams however don't have these problems - they're often made mostly from tallow, palm oil, etc, don't contain (much) Sodium Lauryl Sulphate and of course once they're lathered up, the lather contains a great deal of water.
You can't generally get around these problems and still produce a reasonable can of shaving foam so pretty much every canned foam has the same undesirable properties.
Proper shaving soaps and creams however don't have these problems - they're often made mostly from tallow, palm oil, etc, don't contain (much) Sodium Lauryl Sulphate and of course once they're lathered up, the lather contains a great deal of water.