Both of these packages are separated out because both of them represent two different APIs.
org.apache.hadoop.mapreduce is the newer API.
org.apache.hadoop.mapred is the older API.
The older API was running fine but the new API was introduced to give a more convenient platform to the programmers where they can run their complex Java code.
You can refer the following video for more information regarding Hadoop: