JPG is a format for the internet where small filesizes are of critical importance and having the smallest file means it just stores just enough information to recreate an approximation of the original image which limits what can be done in post-production. RAW images mostly contain the full range of information captured from the imaging sensor, which makes it very useful for post-production, but as most of this information is unchanged raw images which can make them look flat before post-production.