What causes protein and bacteria in the urine?

Infection. Bacteria indicates a urinary infection, and at times you can get protein in the urine with an infection. There are other causes of protein in the urine by itself which usually are caused by one of many kidney disease states.