3 answers
+1 on Krishna's comment. The 15 digit is more intended for the UI, while the 18 digit sits on the backend and represents the full id, and can be useful in systems that aren't case sensitive. The main function that I've seen used with this is the CASESAFEID function, which converts a 15-digit id to an 18-digit id