A bullet casing is important for a few reasons.
To begin with, it holds the propellant and the primer together and preserves them from getting moist or contaminated.
Also, its job is to expand in order to close the chamber. Finally, it frees the gun of unnecessary heat when it is discharged.