Why I can't change the quantity of an item added to the cart?

If you enter a quantity higher than the one available, the cart automatically corrects the box indicating the maximum quantity available.