Why do we expand dimentions with a Lambda?

The purpose of lambda layer (as far as I remember now) is to create a layer with custom processing, not a layer that you can find in a framework. Where you add it, i think it depends on what you want to do.