Why does this resistor get ignored in the calculation of voltage across the capacitor
Under DC conditions, the capacitor will be as fully charged as it will ever be.

That implies that the current through the capacitor has dropped to zero, so the current through the 5K resistor is also zero.  So the voltage across the resistor is zero.