By default, WordPress compress upload jpg image files. While it is a good practice but sometimes, you need not such things. To prevent this, all you have to do is to copy and paste the following snippet in your theme’s functions.php file and it will let you prevent WordPress to compress your jpg files.

Snippet Source/Credit: WP Snippets