Yes, we get that. But those three colors come from THREE raw pixels.
Yeah, which is not the best resolution result, color resolution nor spatial resolution. We can interpolate 36 bits of new data from three near pixels, a new creation fabricated and arranged in a certain way, and it is close, but the raw file data captured by the camera is only 12 bits per pixel. But unfortunately each sensor pixel can only be filtered once, to store one color, either red or green or blue. So we deal with it.
Even JPEG (Joint Photographic Experts Group) says JPEGs are 8-bit.
What is your source link you try to quote? Show me where is this that you see, because I feel sure I can read its words to you better.

If it says 8-bits, it also says Color, or RGB, or such. It should also say 24 bit data.
How hard are you trying? Here from Wikipedia for JPEG:
Encoding
Many of the options in the JPEG standard are not commonly used, and as mentioned above, most image software uses the simpler JFIF format when creating a JPEG file, which among other things specifies the encoding method. Here is a brief description of one of the more common methods of encoding when applied to an input that has 24
bits per pixel (eight each of
red, green, and blue). This particular option is a
lossy data compression method.
It's not rocket science, should be obvious that 8 bits of red, and 8 bits of green, and 8 bits of blue, make 24 bit data. 3 bytes per pixel in JPG RGB.
And 2^8 is 256, and 256 x 256 x 256 = 16.7 million possible color combinations in JPG.
You're a hard sell. Here is a fail safe argument... Try ignoring this one:
Do this yourself. Actually do it.
Open any JPG file you can find in Photoshop. Or open a dozen of them.
Open PS menu Image - Image Size. Here's one for example (some random little image from the internet):
It will show the image size in pixels. On any JPG image you can find and open, multiply image width x height. In this one, 1024 x 934 pixels.
Then multiply by 3 bytes per pixel (multiply by the number 3, for size of 24 bit data). You get data size in bytes.
This one is 1024 x 934 x 3 = 2,869,248 bytes (this is 2.869 MILLION bytes, which is not same unit as megabytes)
The red circled number is showing data size in megabytes, so convert your number to MB by dividing MILLIONS of bytes by 1024 twice (once for K and once for M), and then you get the data size shown, here 2,869,248 / (1024 x 1024) = 2.74 MB.
See? Photoshop is showing the data size computed from the image size x 3 bytes per pixel (for 24 bit data). It is computing actual data size (uncompressed here). No one doubts 8-bit RGB is 24 bit data.

(but 16 bit color is computed as 6 bytes per pixel, or 48 bit data). This is extremely basic.
Photoshop shows you the 8-bit color JPG data size computed as 24 bit data. Not just JPG,
all 8 bit color RGB is 3 bytes per pixel, or 24 bit data. RGB implies three color channels, all three of which are included in the image data.
Any JPG image you can find will repeat this result, because JPG is 24 bit data.
I assumed it would be an easy answer, but if you cannot believe what you see, then sorry, I can't help.