Historically, users could create their own PKG files for custom software or homebrew applications, but this process required specific tools and was generally aimed at developers or advanced users. For games and official software, PKG files are created and distributed by game developers and publishers.
Revisiting a Cult Classic: WET on PlayStation 3 Released in 2009, wet ps3 pkg