Both .tgz and .deb files are commonly found as program installation packages on Linux platform. A tgz to deb conversion is typically needed when user tries to transfer programs from one Linux distribution to another, for example from Ubuntu to Debian, and there is no installation package for the later in support format.
You can find tools such as the program alien, which are used for this job. It just should not be used for system critical packages.