Things Expand when heated.
On hot engine (5-10 mins after turning off to settle oil in pan), Oil will be expanded*, And if you fill it till max on cold engine it will be higher when engine will be heated up, causing the leakage of oil seals.
Always check for oil on hot engine (after 10-15 min of turning it off).
Source
*Does Engine Oil Expand When Hot?