The biggest reason is heat. Depending on what type you have they can really heat up. If it is vented on the ends and you close one off by standing it on end you will probably over heat. That will either shorten the life of the ballast or burn your house down

I would mount it the way the manufacturer says and keep the area around it clear.