Pure speculation:
They took off from SFO and developed a technical problem - let's say an issue with flap asymmetry. They leveled off at 15,000 and eventually went into a holding pattern while troubleshooting it. Once the situation was resolved, they simply continued to IAH.