file (https://www.darwinsys.com/file/) already detects all these formats.
That's not the point in file type guessing is it? Google employs it as an additional security measure for user submitted content which absolutely makes sense given what malware devs do with file types.