Your friend's remark was insensitive ( and lacked insight).
Are those usual attributes for her?
Wonder if she's a tad jealous of your relationship with him?
(Her comment seems like a "put down" to him.)
Either way, so sorry. You and your boyfriend deserve better.

WC