I am also just learning.
"Eines Tages" is in adverbial genitive case because it's an indefinite time expression (without a preposition).
"The time expressions morgens, mittags, abends, nachts, eines Tages (one day) and eines Nachts (one night; analogized with eines Tages, though Nacht is feminine) use the adverbial genitive." Wikipedia