In my head canon, the Turtles ended up in the past due to shenanigans, and when they escaped back to the present via a portal, a T-Rex followed them through, so Donatello utilized components of the mostly destroyed Technodrome to create an equalizer...
This shoot was something of a pain in the butt, but I had fun.