I don't know what text you are referring to, but, according to Homer texts, Ulysses is the one that came up with the idea of the Trojan wooden horse and during his 20 years long travels he always got out of difficult situations using his knowledge and wisdom. I think this is the reason why Minerva helped him