Lantus forms small crystals under the skin. These slowly dissolve to release the insulin.
Levemir binds to proteins in the blood. The bindings slowly dissolve to release the insulin.
For either, some of the insulin has yet to be used by the time of the next shot.
We call this leftover insulin the shed or depot.