Former Post Office boss Alan Cook didn’t realise it prosecuted its own staff, an inquiry into the Horizon IT scandal hears.