No, it's not mandatory for your iPhone app to run on iPad unless you specifically want to make it compatible. You can certainly build an app exclusively for iPhone. Check out this guide on creating an iPhone app for some helpful tips: https://www.cleveroad.com/blog/how-to-create-an-app-for-iphone/.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Tags: