My understanding is that the distributive laws $$A\cap (B\cup C) = (A\cap B) \cup (A\cap C)$$ $$A\cup (B\cap C) = (A\cup B) \cap (A\cup C)$$ hold for any set.
A lattice is defined as a partially ordered set in which every two elements have a least upper bound and a greatest lower bound.
I'm reading that these distributive laws, although they make sense for a lattice, does not necessarily hold for a lattice. How can this be?
Your confusion stems from a misunderstanding of what the operations $\cap, \cup$ mean in a lattice. When you say that your two equations "hold for any set", what this more formally is that for any set $X$, if $A, B, C$ are subsets of $X$, then $$ \begin{align*} A\cap (B\cup C) = (A\cap B) \cup (A\cap C),\\ A\cup (B\cap C) = (A\cup B) \cap (A\cup C). \end{align*} $$ A lattice $(Y, \land, \lor)$ is a set together with two binary operations $\land, \lor$ which satisfy some rules. These rules include, for example, $a \land (a \lor b) = a$, and $a \land b = b \land a$. The lattice $(Y, \land, \lor)$ -- usually just referred to as $Y$, unless confusion can occur -- may or may not satisfy the additional rules $$ \begin{align*} a\land (b\lor c) = (a\land b) \lor (a\land c),\\ a\lor (b\land c) = (a\lor b) \land (a\lor c). \end{align*} $$ If it satisfies these additional rules, we call $Y$ a distributive lattice.
Rephrasing the first statement in terms of the language of lattices: if $X$ is a set, then $(\mathcal P(X), \cap, \cup)$ forms a lattice, and this lattice is distributive.
Now you hopefully see that you have mixed up the following two statements. For a lattice $(Y, \land, \lor)$, it may be distributive or not. However, the lattice $(\mathcal P(Y), \cap, \cup)$ is certainly distributive. But this is a statement about a different lattice.