If you describe someone as lousy, you mean that they are very bad at something they do. I was a lousy secretary There can be no argument about how lousy he is at public relations. = awful, terrible
If you describe something as lousy, you mean that it is of very bad quality or that you do not like it. He blamed Fiona for a lousy weekend It's lousy to be the new kid. = rotten