There could be a number of reasons as to why the number goes from right to left but it usually comes down to the type of word processer your program is using.
For example, Hebrews write from right to left but their numbers go from left to right. Try writing numbers into a word processor that supports the language and you will probably find it writes the numbers right to left the same as the text. This is a common annoyance in word processors that support the language.
The more common reason for the numbers here going right to left is that its the easiest way to program the number distribution. Assigning numbers based on their place values in the order they are drawn is the simplest way to tell the computer how to handle the number. Place values increase from the start at units, tens, hundred, thousands (visually starting from the decimal point and moving right to left). This way there is a very clear start point ( in this case 0 or the decimal point) and a clear end point (a number in the thousands or hundreds if the thousands place value happens to be a 0).
To assign numbers from left to right is more complicated because the computer can have trouble assigning the first number to a place value unless explicitly told. For example if you drew a 1, the computer would have to explicitly be told which place holder to assign the number to otherwise it wouldn't know whether the number was to be treated as a 1, 10, 100, 1000, etc. (whereas if going right to left, it would be treated simply as 1).
This requires more complicated coding to be written and there are other ways it can be handle such as treating integers as text until you have the completed text and converting it back to an integer. Obviously where time and money are of value most people would pick a simpler system.
As for why numbers can't be matched in any order is pretty obvious, the odds of 1 in 10000 are already very good by lottery standards and matching numbers in any order would just increase the odds substantially that people would be winning left, right and center and multiple times a year. this is what the mini cactpot is for.