Carpet interferes Enchanting levels
When you have a lvl 30 enchanting table with books surrounding it, you can use the lvl 30 enchantments but if you place down carpet around the crafting table, it cuts off the books making it go down to a basic enchanting table.
As seen by the pictures, the first picture has carpet and the second picture does not.