A torrent is a download method rather than a file format. You first grab a small .torrent file, then open it with a torrent client, which uses that file to pull the actual data from other users.
One important caveat: the large majority of games distributed this way are unauthorised copies, which means downloading them is usually copyright infringement and often comes bundled with malware. If you want a game cheaply and safely, legitimate routes such as sales on official storefronts, free-to-play titles or subscription libraries will get you there without the risk.