NETWORKDAYS includes both the start date and end date in the count, if they are not weekend days.
There are five days in your range: Friday, Saturday, Sunday, Monday and Tuesday.
Two of those are weekend days. NETWORKDAYS counts Friday, Monday and Tuesday, so it returns 3.
If you don't want to count both the start date and end date if they are working days, use
=NETWORKDAYS(C1,D1)-AND(WEEKDAY(C1,2)<6,WEEKDAY(D1,2)<6)