It is a vulgarism, a misinterpretation of mamotreto ("armatoste, big and heavy thing, especially a book"); that as in many cases ended up becoming localism in some regions of Spain such as La Rioja.
Large object that is useless