Incident in Panampilly Nagar

Today I was hanging out with my friends in Panampilly Nagar in the afternoon near shifus momos when 2 random guys, one with a mic and another with a camera came and asked if I was interested in an interview about the election. Because all my friends asked me to do it I was like sure why not.

First it was normal, he asked me basic questions but then he asked who I am going to vote. Isn't that a crime? You cannot ask that to anyone right? They were recording on top of it, I got really annoyed and I said that's none of his business to know who I am voting for. But how do these guys get away with it?

He said his channel has a lot of reach, so I have no idea how they are getting away with asking such questions. He was interviewing couple of other people also after that, I wonder if he asked them the same thing.

Edit : please tell me if I am wrong, because this is my first time voting and I thought we were not supposed to say who we are voting for to any other person