@Arun K A You can try building osquery with the MinSizeRel build type in CMake; I haven't tried to see how much that gets you though. In general though the size is like that due to the fact that we link every dependency (except the ones we can't), as static libraries.
So everything is in one binary.
We're having some discussion/brainstorming on the build size issue:
https://github.com/osquery/osquery/issues/6397
Mind that it's more focused on how to reduce the size of the whole build, with a focus on tests size because they are the ones that takes more space, but "some" of those might help reduce also the osquery binary size a bit.
The only other way I can think of is actually not compiling things you don't need (but it's a bit of a manual process of modifying the CMake code to remove targets).