utils/date.ts
function formatDate() {…}
lib/format.ts
function formatDate() {…}
api/order.ts
function formatDate() {…}
3 copies
It rewrites what you already wrote
It cannot see the 400 functions already in your repo. So you get formatDate() again, in a third file, subtly different. You catch it in review — or nobody does.