Some people put them in basic weapons they find and then sell them for the extra caps. Also, you get XP for modifying those guns you sell.
You only get xp for making mods, not applying them. That would be bork
i put em in my workshop in sanctuary, they might come in handy later for another weapon