When you ask to capture JPEG, the camera still has to produce a raw and convert internally to JPEG. It's proprietary processing. The same is true for LR when it makes thumbnails for your raws; proprietary processing hence differences. Camera matching profiles can help get closer, assuming you believe the camera processed JPEG is somehow more pleasing.