A player must be hit by fire a couple of times before actually being set on fire
If you light something on fire with a flint and steel and create a fire on the side or on the top of a block, a player needs to stand on it long enough to be hit a couple of times by it before the player is actually set on fire. This doesn't apply to mobs.