What is the setting for the product regarding mixed content?
By it not being enforced attribute 1 is treated as a product where attribute 2 is treated as a separate product allowing the total quantity to be greater than the quantity in stock. (Stock by attributes, by the way has been designed to address this issue further though I wouldn't say it is as necessary for this type situation.)
Bookmarks