Maybe it didn't "spread" the cold sore, but shaving may have irritated your skin enough around your mouth/nose to anger/wake the dormant virus causing an independent flare up?

Chris L