They can't because farmland is partially transparent and mobs need to be on a solid block. The only blocks on the farm are farmland, stairs, and an observer with the butt facing up.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.