This is generally done to protect battery cell health. Much like SSD memory one cell in the battery failing will ruin an otherwise fine battery.
But Tesla did sell a few cars with different battery capacities and exactly the same hardware. If you got the smaller capacity then you got a buffer. Tesla could unlock the buffer remotely, if you give them more money or if you need to evacuate before an incoming hurricane or similar.