There are three points here: First, Tor was and continues to be funded by the NSA, among other government agencies. Second, the NSA created Tor for themselves to protect their own agents. Third, by operating Tor exit nodes, they are able to spy on other people's traffic, hence a honeypot.