OK !! I think I understood why this is happening.
Please correct me if my understanding is incorrect.
Because I have enabled bbpress. So Buddypress uses bbpress plugin to provide forums functionality as opposed to its own forum. Now since bbpress is a plugin so the follow goes to plugins.php rather than buddypress’s own forum.php