Well, expanding glue = foam. It produces a gas as it sets which produce small bubbles in the glue which in turn expand the glue. If it's not constrained from expanding too much by the materials it's sandwiched between, then the gas bubbles will get bigger, reducing the relative amount of glue in the gap and making the bond weaker. So it really needs to be used where gaps are small, and then it is very strong.