Its leftover compounds soak up UV light
Dried urine contains compounds that absorb ultraviolet light and throw it back as a bright yellow-green glow. That's why a cheap blacklight turns up stains on carpet, baseboards, and furniture that look spotless under a normal lamp โ the spots were always there, just invisible to you.