Hi!
You are right in that 5 does not go into 4. Therefore, when you solve for 4%5, you get that 5 goes into 4 zero times with a remainder of 4.
I hope that makes sense and helps!