A few packages use /opt for optional user installed items. Darwinports, for instance, creates and uses /opt. The Fink project creates the /sw directory for its packages. A benefit of this approach is that it makes it easy to identify additions and to remove if desired.
Check your logs and there will be an entry reporting the software that created /opt.
Craig