Obscure, as is common among colloquialisms. OED mentions possible association with Dutch trappen, to tread or stamp the foot, but objects that the connection is unconvincing.
Practica hablar y memorizar " trapes " y muchas otras palabras y oraciones en inglés .