Experience trickle was added with changeset rP23541 (21/Mar/20), since then units garrisoned in barracks get 1XP/sec, this diff adds the experience trickle stables and elephant stables as well.
I felt it was inconsistent to have this aura only for the barracks buildings and wanted to add it to other military buildings as well.