In Rick Riordan's The Lightning Thief, Ares was not working for Luke Castellan. Instead, the god of war manipulated Luke into stealing Zeus's Master Bolt to ignite a divine war.
Ares exploited Luke's resentment, effectively using him as a pawn. While Luke later became a central figure in Kronos's forces, his initial theft was orchestrated by Ares for Ares' own ends. The two were never allies in a traditional sense — Ares pulled the strings.